You probably want a semicolon instead of the pipe
exec("tar -z -cf area.tgz ../Mud/area/; cp area.tgz
archive/area_$backupdate.tgz");
I didn't see the original post, but you might want to consider using system
instead of exec. You cannot do anything
after an exec except for check its return status.
Good luck!
Tanton
-----Original Message-----
From: Duston S. Horacek [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 7: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]