You are here

Linux VPS - Gzip at end of webgrab Run

3 posts / 0 new
Last post
Joined: 2 months
Last seen: 2 months
Linux VPS - Gzip at end of webgrab Run

Hi Everyone, 

This may sound like a simple question but I have not been able to get this completed. 

I have the newest version of webgrab installed on my Linux VPS ,  finally after a couple of days created a working ini with all the channels needed. I have it set to complete incrementals and will have it run every other day.   I'm executing this currently via a cron job and it writes to the location I specify in an xml file. 

Is there any way to automate that after webgrab runs the incremental it will gzip the file into an xml.gz file?  

The only way I can figure to do so would be to have it run to the xml file and set a seperate cron hours later to gzip the .xml file. 

Any help would really be appriciated. 


Joined: 2 years
Last seen: 1 day

create a script to run webgrab and then zip the file.

then run that script via a crond job.

something like..


cd /root/WG/WG

mono WebGrab+Plus.exe "/root/WG/WG" 
gzip -cf tvguide.xml > tvguide.xml.gz


you save this as a being the filename.

this is a simple would have to change the paths and filenames.also dont forget to chmod 755 the sh file.

Joined: 2 months
Last seen: 2 months

Thank you for the instruction. 

As simple as it was I just never thought of it.   Bash to run a bash was not a concept in my mind. 

You have made my life easy . 


Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: