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

How do I exec a command on a remote box

Status
Not open for further replies.

Tison

Programmer
May 12, 1999
216
CH
I want to run a command on a remote server, from within a batch script.My logon id is not root and changes on the remote site.
This does not work ;
rsh remotenode -l uid << EOT
password
command
exit
EOT

It just does nothing.
Any ideas ?
 
Do you have a .rhosts file on the remote server? man rsh for details of this file. HTH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top