Rick wrote: > I have a perl script on remote server. > I want to launch a expect script(none perl) from local server with > arguments and launch perl script on remote server.(arguments will be > feed into perl script) > I don't know how long perl script will run but I want to scp(using > expect script from local) the file back to local as soon as perl script > is done on remote server. > What is the best way for this?
I have several Bash and Perl scripts for backing up remote machines (two Drupal web sites and one CVS server): 1. Perl scripts on the remote machines that create archives using tar. 2. Matching Bash scripts on my local machine that invoke the #1 scripts using ssh. 3. Matching Perl scripts on my local machine that copy the tarballs created by the #2 scripts from the remote machines to my local machine using rsync. 4. A top-level Bash script that calls the #2 and #3 scripts in order for each remote machine. See man tar, man ssh, man rsync, and perldoc -f system. HTH, David -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/