Welcome to the Monastery | |
PerlMonks |
Net::Telnet: remote job completionby maskull (Novice) |
on Feb 28, 2012 at 08:34 UTC ( [id://956614]=perlquestion: print w/replies, xml ) | Need Help?? |
maskull has asked for the wisdom of the Perl Monks concerning the following question:
Hello all,
I'm using my Perl script to Net::Telnet to an AIX box and execute several consecutive scripts. Each one has to wait for the predecessor to finish before it can start. Before Perl, I would log in using telnet, fire up the first script and then do "tail -f" on the job's log as each one writes to a separate one. When the job completed I'd get the last line saying "FINISHED". Then I'd know I can get on with the next one. So how do I emulate that "tail -f" with Perl? Or do I take another approach to check whether the job has finished, e.g. grab the job's PID and periodically check if it's still there? I'm afraid my code isn't really useful at this point. It is only the beginning. I'd appreciate any input. Thank you!
Back to
Seekers of Perl Wisdom
|
|