Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Error using system() and tar with several options

by linuxer (Deacon)
on Apr 13, 2009 at 21:34 UTC ( #757283=note: print w/ replies, xml ) Need Help??


in reply to Error using system() and tar with several options

I wonder, why you want to replace a bash script with a perl script for this job?

If the bash script is doing the job, why do you want to replace it?

Even for learning purposes I don't see much use of doing such things.

Did you try to separate each option in @args?

my @args = ("/bin/tar", "-czv", "--exclude-from=$excludes", "-f", $s +torageLocation.$archiveName, $archiveDir ); system(@args) == 0 or die "system @args failed: $?";

I am still wondering about which "old option 'b'" your tar is complaining... Crackers2's answer helped


Comment on Re: Error using system() and tar with several options
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://757283]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2015-07-05 23:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls