Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: path in tar file...please help

by ilcylic (Scribe)
on Oct 10, 2007 at 21:05 UTC ( #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? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2022-08-19 08:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?