in reply to Error using system() and tar with several options
The logical reason for tar choking on this is that it sees a -b flag, the logical reason for this is that you have an effective call tomy @args = ("/bin/tar", "czv --exclude-from=$excludes -f ", $storage +Location.$archiveName, $archiveDir ); system(@args) == 0 or die "system @args failed: $?";
Put a space after the -f flag to resolve, that said, why are you replacing the shell script by having Perl spawn shells instead?tar -czv -fbackup.tar.gz
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Error using system() and tar with several options
by gctaylor1 (Hermit) on Apr 14, 2009 at 19:59 UTC |