Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Tar a files

by puudeli (Pilgrim)
on Mar 02, 2009 at 10:36 UTC ( [id://747429]=note: print w/replies, xml ) Need Help??


in reply to Tar a files

Please provide more information about the error. For example what kind of file names you have and the directory structure. system may split the argument string to words possibly corrupting argument vector if the file name contains whitespaces. You would be safer using systems LIST argument format. For example,

@count=`find dir_name -name *.tar`; @args = qw( tar -x -f ); foreach $cnt(@count){ push @args, $cnt; system(@args) == 0 or die "system '@args' failed: $?"; pop @args; }
Note, untested code.
--
seek $her, $from, $everywhere if exists $true{love};

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-03-28 14:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found