heezy has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I need to extract files from a tar that has been submitted via an HTML upload (cgi.pm)
At the moment the file is uploaded to the correct directory with the following persmissions..
drwxr-xr-x 2 nobody nobody 512 Oct 7 15:40 ./ drwxrwxrwx 46 mf139823 staff 1536 Oct 7 15:40 ../ -rw-r--r-- 1 nobody nobody 461824 Oct 7 15:40 sample.tar
I thought it would be a simple case of creating a tar object and asking it extract all files in the archive. Apparently not? What am I doing thats crazy
open TARFILE, "/.....$submissionID/$user_File_Filename"; $tar = Archive::Tar->new(); $tar->extract_archive(TARFILE);
Any help would be gratefully recieved
Many thanks
M
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extracting files Using Archive::Tar?
by Flexx (Pilgrim) on Oct 07, 2002 at 22:35 UTC | |
by heezy (Monk) on Oct 08, 2002 at 02:27 UTC | |
by heezy (Monk) on Oct 08, 2002 at 14:53 UTC | |
by heezy (Monk) on Oct 08, 2002 at 15:07 UTC | |
|
Re: Extracting files Using Archive::Tar?
by valdez (Monsignor) on Oct 07, 2002 at 22:24 UTC | |
|
Re: Extracting files Using Archive::Tar?
by valdez (Monsignor) on Oct 08, 2002 at 17:18 UTC | |
by heezy (Monk) on Oct 08, 2002 at 18:41 UTC | |
|
Re: Extracting files Using Archive::Tar?
by heezy (Monk) on Oct 07, 2002 at 21:51 UTC |