Owen 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?

Only way I can think of is launching expect script every 30 sec to
see
if remote server has output (say in /tmp/results.1) and if it does,
transfer back.
Maybe this is not a perl question and perhaps it is more basic unix
quesiton(?) but just wondering if I can get some construtive
feedback
on
this.




Well I have scripts on the remote server which

a. checks for the existence of the file.
b. goes to sleep if not there
c. rsync it back if it is there, then exits

The whole process is initiated by a cron job, including the generation
of the file in the first place.


HTH


Owen





but in my case, i cannot do that from cron job since i need to feed @ARGV...... to remote server.. in order to run it

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to