Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: foreach loop to untar multiple files

by Paladin (Vicar)
on Nov 13, 2015 at 16:25 UTC ( #1147670=note: print w/replies, xml ) Need Help??


in reply to foreach loop to untar multiple files

system doesn't return the output of the command run, it returns the exit code of what's run, in your case 0 hence the 0 in your output "tar: 0: Cannot open: No such file or directory". Take a look at the glob() perl command to get the listing of files in a directory.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2022-05-29 05:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (101 votes). Check out past polls.

    Notices?