You are here

Linux VPS - Gzip at end of webgrab Run

3 posts / 0 new
Last post
NubSalsa
Offline
Joined: 1 week
Last seen: 5 days
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. 

Nub

Blackbear199
Offline
Joined: 1 year
Last seen: 3 min

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

then run that script via a crond job.

something like..

#!/bin/bash

cd /root/WG/WG

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

exit

you save this as a xxx.sh file.xxx being the filename.

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

NubSalsa
Offline
Joined: 1 week
Last seen: 5 days

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 . 

Cheers. 

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: servercare.nl