Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: path in tar file...please help

by ilcylic (Scribe)
on Oct 10, 2007 at 21:05 UTC ( [id://644093]=note: print w/replies, xml ) Need Help??


in reply to path in tar file...please help

Does $UploadDir == "/var/www/web/tmp/output/nu98382139012783/" ? If so, that's why the tar file is storing the full path.

To avoid this, you need to change the current working directory of where you are calling tar from, to the value of $UploadDir, and eliminate $UploadDir from the tar command, so it will operate on the local directory.

Is that what you want tar to do?

Check out the perl function "chdir" to effect that change within your script.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-16 07:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found