djynen has asked for the wisdom of the Perl Monks concerning the following question:
The gzip operation ONLY fails when it's run through the crontab. An example would be -my $tar_filename = $ARCHIVE_PREFIX . $dateString . ".tar"; my $gzip_filename = $ARCHIVE_PREFIX . $dateString . ".gz"; # Tar the working directory files in the backup directory $status = system sprintf("/usr/bin/tar cf %s/%s %s", $backupDir, $tar_filename,$tempDir); $status = system sprintf("/usr/local/bin/gzip %s/%s", $backupDir, $tar_filename);
Does anyone know why this isn't working?05 22 * * 0 /opt/portal/6.1/bin/cleanAge.pl 'B' /opt/portal/6.1/gprs/Archive GPRSASN
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problems using gzip in a Perl program
by dws (Chancellor) on Dec 11, 2001 at 08:49 UTC | |
|
Re: Problems using gzip in a Perl program
by jaldhar (Vicar) on Dec 11, 2001 at 09:37 UTC | |
|
(ichimunki) Re: Problems using gzip in a Perl program
by ichimunki (Priest) on Dec 12, 2001 at 02:35 UTC |