Link to home
Start Free TrialLog in
Avatar of Matt Jones
Matt JonesFlag for United States of America

asked on

ksh question: Is there such a thing as a remote grep

Hi,

I have a situation where I am running a ksh script on serverA.  I would like to search for a string in a file that resides on serverB.
I know exactly where the file is located in serverB.  Copying the file from serverB to serverA is NOT an options. How can I execute a grep on serverA and look for a string in a file located on serverB ?
SOLUTION
Avatar of gripe
gripe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Matt Jones

ASKER

ssh look good; however, how do I pass in the password ?  On the command line, it prompts me for the password.  How can I provide the password if I use ssh in a script ? I do have full credentials for ServerB.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gripe
gripe

argh.. got to it before i could. :)
Quit griping (sorry, couldn't resist ;-)