You are here

cronjob

2 posts / 0 new
Last post
jNilsson
Offline
Donator
Joined: 11 months
Last seen: 4 weeks
cronjob

hi i need a little bit help from jan. support guy tell me that u can help with this.
i want du amke different config files. and start all with cronjob. i look into run.sh but there i dont find line to change source for the configfile.
give another way to make more confg files and run it per cronjob without change evrytime the name from config file to original.?

ejohalj
Offline
Donator
Joined: 5 years
Last seen: 4 days

If you are running on a linux system which I think you are then it is very easy. You set up different folders for your different EPG. Then to start them, you create a python program that looks like this, depending on what you use to start the epg guides:

os.system('mono /the bin folder/WebGrab+Plus.exe /the folder of the EPG')
os.system('/home/pi/.dotnet/dotnet /the bin.net folder/WebGrab+Plus.dll /the folder of the EPG')

You can have as many folders as you want in here.

to run the file, you do:

crontab -e

and add the when and how often it should run. This might be a good site to check how to create with correct time: https://crontab.guru/

so you might have it like:
0 15 * * */3 /usr/bin/python3 /home/pi/Downloads/run_epg.py

Hope this what something like you wanted.

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