You are here

Cron debian

9 posts / 0 new
Last post
Gzolee
Offline
Donator
Joined: 7 years
Last seen: 6 months
Cron debian

Well guys, finally I got the program running on vps, but I have no clue how to set wg++ in cron. Any chance someone can tell me in human language, what should I write in cron? I'm new in debian, first time I'm using it so be gentle pls! ;-)

Gzolee
Offline
Donator
Joined: 7 years
Last seen: 6 months

Thank you brother for your quick reply! But HOLY JESUS! I thought if I write, /root/.wg++ will do the trick, but of course I was wrong, again. So I can't just write ~/.wg++/run.sh in cron, strange because if I write this in cron and click on start now, it's starts? I will try to decoding what u just wrote, and try that way

Update

crontab -e
Error opening terminal: unknown.
crontab: "/usr/bin/sensible-editor" exited with status 1

 

 

Gzolee
Offline
Donator
Joined: 7 years
Last seen: 6 months

OMG!!!!!!! I LOVE U M8!!!!!!

> /root/.wg++/bin/WebGrab+Plus.exe

             WebGrab+Plus/w MDB & REX Postprocess -- version  V2.1              

                                Jan van Straaten                                
                             Francis De Paemeleere                              

            thanks to Paul Weterings and all the contributing users             
--------------------------------------------------------------------------------

WebGrab+Plus  V2.1

Usage: WebGrab+Plus [OPTIONS...] [CONFIG_FOLDER]
OPTIONS:

CONFIG_FOLDER:
  This is the absolute path to the configuration folder.
  The configuration folder must contain at least a WebGrab++.config.xml file.

Job started at 04/10/2017 19:09:31
Job finished at 04/10/2017 19:09:31 done in 0s
Config syntax exception:
      file: WebGrab++.config.xml
   message: 
WG.Common.InvalidConfigException: [Error   ] Doesn't exist
  at WGconsole.Config..ctor (System.String ConfigurationFilePath) [0x000b6] in <274ad6f9740e441a95b86a1d1148edca>:0 
For detailed info, see log file WebGrab++.log.txt
Execution stopped

 

 

now im just going to copy the config xml and ono big step closer! THANK UUUUUUUUUU

Gzolee
Offline
Donator
Joined: 7 years
Last seen: 6 months

Man! U can't even imagine how happy I'm! and u have no idea how much I appreciate your efforts and patience! I'm own u a BIG ONE!!!
One more question if u don't mind. If I create more folder inside bin like grab1 grab2 etc... And copy the webgrab.xml and ini files and config.xml, I can run More webgrab in the same time? Or I'm wrong again?

Gzolee
Offline
Donator
Joined: 7 years
Last seen: 6 months

Thank you! Will check it out! But at the moment I'm so happy, I'm jumping all over In the room, like f**** Christmas Aaaaaaaaaaaaa man I can't thank u enough!!!!

Gzolee
Offline
Donator
Joined: 7 years
Last seen: 6 months

Well big brother Blackbear199
Everything is working like a charm thanks to u!but I have a question again, finally I managed to generate the epg.xml in the public html folder so I have access for the epg ( only took 2 days and lot of reading :)) but the question is, when wg start the scheduled grabbingthe existing epg.xml is gone, replaced with the new and not finished epg. Is any opinion to keep the old epg.xml till the new not done and just after wg finished the new one over write the old existing one?

donbrew
Offline
Joined: 8 years
Last seen: 4 months

I don't know if this info is outdated already or I can't read right.

I freshly installed Raspbian Stretch on RPi 3, installed Wg++.  There is a script named "run.sh" installed by the installer, it runs fine from the CLI after I chmod ed it.

I am logged in as user pi

My crontab is: (changing the time for a few minutes ahead)

15 15 *  *  *  "$HOME"/.wg++/run.sh

Also tried

15 15 * * * /home/pi/.wg++/run.sh

and

15 15 * * * /home/pi/.wg++/bin/WebGrab+Plus "/home/pi/.wg++"

 

And several other paths.  They seem to work in the CLI but not with cron.

Any ideas?

 

donbrew
Offline
Joined: 8 years
Last seen: 4 months

I'm not sure what I did different but cron started working with "/home/pi/.wg++/run.sh".  I suppose I had a persistant typo.

ernestt83
Offline
Has donated long time ago
Joined: 6 years
Last seen: 2 years

Hi to evryone i have problem with cron i tried evrythink and it doesnt start on my vps on ubuntu 14.04.

My cron is in var/spool/crontabs/cron  root   i tried with this commands in cron nothing worked

40 1 */4 * * cd /var/www/epg.website.com/public_html/epg-de && ./run.sh

20 2 */3 * * /var/www/epg.website.com/public_html/epg-de/WebGrab+Plus.exe "/var/www/epg.website.com/public_html/epg-de"

 20 2 */4 * * /var/www/epg.website.com/public_html/epg-de/update.sh

i realy dont know what else i can try and where i making mistake. when i start it manualy evrithing work perfect.

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