You are here

Linux VPS - Gzip at end of webgrab Run

4 posts / 0 new
Last post
NubSalsa
Offline
Joined: 5 months
Last seen: 5 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. 

Nub

Blackbear199
Offline
Joined: 2 years
Last seen: 6 hours

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: 5 months
Last seen: 5 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 . 

Cheers. 

bonz777
Offline
bonz777's picture
Donator
Joined: 8 months
Last seen: 1 week

Hello

 

I am searching this issue form long time and find this reply help full. But Still I am confused about how I combined this script with auto time correction script. Please check the attached file that ai am using to adjust time for ALL EPG. Also please guide me to add this script in same file for convert .xml to .xml.gz

 

 

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