Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

remsh from a shell script

Status
Not open for further replies.

elcid2k3

Technical User
Jun 8, 2007
9
0
0
RO
Hi,

I can run the following remsh command from a HPUX server to a SunOS Server:

remsh x.x.x.x PATH_TO_REMOTE_SCRIPT parameters

but if I want to run the remsh from a script like this:

#!/usr/bin/sh

res = `remsh x.x.x.x PATH_TO_REMOTE_SCRIPT parameters`
echo $res


I get the message
./my_script.sh[3]: res: Execute permission denied

Do you have any sugestions?
 
leave away the blanks:
res=`remsh x.x.x.x PATH_TO_REMOTE_SCRIPT parameters`
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top