have you tried:
        
        mv mytar.tar /my/path/to/dir/; tar -xpf /my/path/to/dir/mytar.tar

this should work, but there may be a more direct unix-y way to do it.

DanO


-----Original Message-----
From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 1:49 PM
To: PHP User Group
Subject: [PHP] using tar to untar a file into a certain dir... In php of
course


Hello,

I am making a php file that untars files.  What I can't seem to figure out
is how to untar a file into another folder.  I have tried:

tar -xpf file.tar /new/folder/*

          & and &

tar -xpf file.tar /new/folder/


does anyone know how to do this?

Thank you,

--------------------------------------------
Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.com
--------------------------------------------


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to