Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Untar 1

Status
Not open for further replies.

sleuth

Programmer
Jan 12, 2001
134
US
How can I untar a .tar.gz file on a linux box with perl,

system("tar -zxvf $in{'destination'}/$filename");

Give me an internal server error,

Thanks,

Tony "Java?? Umm, I think that's the stuff I drink while I'm coding perl."
 
you could go to CPAN.org, get a module for tar and a module for gzip and do it all within perl... "If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito."
 

Guess what worked though,

`cd $in{'destination'}`;
`tar -zxvf $in{'destination'}/$filename`;

But you are right, I found a sweet module on cpan called Tar Archive, Tar.pm, I love the faqt that you wouldn't be using the system, just for what I'm doing I can't use it, this is an install script so you're supposed to put this thing on all kinds of different servers.

Thanks,

Tony "Java?? Umm, I think that's the stuff I drink while I'm coding perl."
 

Just had to say this is sweet

`tar -C $in{'destination'} -zxvf $in{'destination'}/$filename`;

Tony "Java?? Umm, I think that's the stuff I drink while I'm coding perl."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top