Link to home
Start Free TrialLog in
Avatar of holcrofts
holcrofts

asked on

Automatically uncompressing file on a CD and sending to a location

I currently get sent a CD of log compressed information, on a regular basis.  At the moment I am copying them off the CD, and uncompressing them using gzip.   Is there a way I can automate this process, and send them to a directory?
SOLUTION
Avatar of digimonkey
digimonkey

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of holcrofts
holcrofts

ASKER

Yes I did mean that the system should detect these files once the Cd is mounted, and then copy and uncompress them.

Thanks

Andrew
if the CD *always* has a specfic code in the volume id (like a vendorname perhaps) that would be unique from other cds, there you should be able to detect this and automatically mount the cd, and use the other scripts provided here to copy the files.

If you cant find a unique code, then you are forced to manually type "process_logs" or whatever you name your shell script.