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

Executing a Batch File found on another Unix Server.

Status
Not open for further replies.

salimwng

IS-IT--Management
Mar 11, 2002
134
MU
Hello everybody,

Through your help, i have been able to schedule the daily data backup on tape, have the data tar'd and compressed and have it ftp'd to another Unix server by using .NETRC file.
Many thanks to all of you.

Now i would like to know how can i execute a batch file which i have created on the other Unix Server so that as soon as the data have been ftp'd overthere, the batch file automatically gets executed.

Counting again much on you friends,
Best regards.
Salim
 
Use rsh (remote-shell) from the source server (whatever server is doing the ftp job) and after the ftp part of the script enter :
rsh {DEST_SERVER} {PATH}

Just need to make sure the source and destination servers are in each others /.rhosts file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top