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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rsh

Status
Not open for further replies.

manimurugan

IS-IT--Management
Sep 13, 2000
1
US
hi,
I am able to use rsh to execute any commands and shells of other system, but only in /etc, /usr/bin and other rootvg directories. ( From node1, "rsh node2 df" is ok).But even as a root user, i am not able to run remotely, shell scripts which is in a filesystem from non-rootvg volume groups. ( from node1, "rsh node2 myshell.sh" is not ok. myshell.sh is in /u01/app/xxx directory).If I give full path name like "rsh node2 /u01/app/xxx/myshell.sh", that works. I don't want to give full path name everytime. How do I do that. My local & remote PATH is fine for /u01/app/xxx. my .rhosts are ok. I am able to rlogin without any problem.
Can someone suggest me how do I do that ?

-Mani- [sig][/sig]
 
When you say not able to run reomtly, what does that mean?
What do you get when you try to execute this script?

When you are in the directory did you try ./myshell.sh ?
if so what happens?
 
on the remote machine -- write a short shell script that save the value of the $PATH variable to a file.

Run that remotely -- as root say -- and then look at the value it saved..... Just to confirm that the $PATH is set as you expect. [sig]<p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>Making mistakes, so you don't have to. &lt;grin&gt;[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top