OK, I have been reading the Learning Perl book but I think I know this one.
The system() function should wait for the process to finish before moving on
(read this a couple days ago, might be misremembering it) but for really
fine control you can use the fork() then exec(), and maybe throw in a
wait(). I think that stuff is in Chapter 14 of Learning Perl.
How'd I do for my first Perl answer?
G. Armstrong
AIX Support Specialist
amongst other things...
-----Original Message-----
From: Duston S. Horacek [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 8:01 PM
To: perl
Subject: Help request for backup perl script
Spoke to soon as to my problem beign solved, what is happening now is that
the tar/zip operations are still running when my script copies ythe files
and dates them for the archive folder, the working part of the script is
something like
exec("tar -z -cf area.tgz ../Mud/area/ | cp area.tgz
archive/area_$backupdate.tgz");
How can I get it to wait between these to operations?
Thanks in advance for all the help.
Dincerly,
Duston S. Horacek
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]