scottdware has asked for the wisdom of the Perl Monks concerning the following question:
I was asked by someone here at work if there was a way that I could write a script that would automate a backup job on a Windows box (has perl on it).
But one of the steps involvs backup up some files, and then calling another script (perl) which actually does the backup. Now, both of these steps will produce some kind of output normally, such as "xx files copied" and "restored successfully".
Is there a way that I can watch or look for this output, and then move onto the next step only when I see this? Sometimes, the times vary as far as how long it takes.
Thanks in advance!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to monitor/look for output?
by ikegami (Patriarch) on Jun 02, 2009 at 16:17 UTC | |
|
Re: How to monitor/look for output?
by apl (Monsignor) on Jun 02, 2009 at 16:16 UTC | |
|
Re: How to monitor/look for output?
by elTriberium (Friar) on Jun 02, 2009 at 23:40 UTC | |
by scottdware (Sexton) on Jun 03, 2009 at 08:31 UTC | |
by kennethk (Abbot) on Jun 03, 2009 at 15:48 UTC | |
by scottdware (Sexton) on Jun 04, 2009 at 13:06 UTC | |
by kennethk (Abbot) on Jun 04, 2009 at 15:21 UTC |