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

telnet to other box in middle of script

Status
Not open for further replies.

jalge2

Technical User
Feb 5, 2003
105
US
I'm creating a script that checks the TOC of our backup tapes. We have two main boxes here, A box which is the primary production box and the C box which is the test and backup box. I made a menu and so when you press 4 it telnets over to s0990c (C box). But after that the script stops. Is this possible to call something after you have went to another box? Thanks for the help.
 
If I've got the right picture, the script will not continue until you logout from the s0990c telnet session. The script should continue from that point.

 
hey jalge2,

have you tried using "rsh" instead of a telnet? you can execute remote commands(or scripts) on other boxes with it. when that command is done you are returned to the current box.

but my question is what is it you are trying to execute on the other box?

Andy
 
I would suggest andyc333's method. use rsh and run the commands. may be you can execute thru rsh with an ampersand & to run in background. and your script will come back to the first machine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top