[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

untar tarred files and more...

Posted on 2004-10-27
3
Medium Priority
?
300 Views
Last Modified: 2011-09-20
Need to know how to create a specialized file management cgi script, preferrably a shellscript, perl if necessary, to untar uploaded tar files within a directory.  The script would also keep the original directory structure contained within the tarball.  This script would be run from a password protected HTML form, ie; clicking a web button would untar the tar file into its own directory (the name of the directory would be from from the filename).  Having some sort of chooseable directory/file listing within the HTML page would be a plus.  

Originally, I wanted to be able to use cron to automatically schedule the untarring of the files at a certain time but I do not have root access to the server, which also means I dont have the ability to install any perl modules.  

0
Comment
Question by:tomdotblack
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 23

Accepted Solution

by:
brettmjohnson earned 500 total points
ID: 12430456
The script would be:

#/bin/sh
cd destinationDir
tar -xf /path/to/tarfile.tar


to list the contents of the archive:

tar -l /path/to/tarfile.tar



0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question