- Forums
- → Viewing Profile: Posts: daviddrf
ATTENTION !!!
Due to a database corruption issue, we were forced to restore last-nights backup. This means all posts of Saterday Febuary 17th have been lost.Community Stats
- Group Member
- Active Posts 8 ( per day)
- Profile Views 1,386
- Age 55 years old
- Birthday September 6, 1969
-
Gender
Not Telling
Contact Information
User Tools
Friends
daviddrf hasn't added any friends yet.
Latest Visitors
No latest visitors to show
Posts I've Made
In Topic: Crontab info or a Plugin Enigma2
9 March 2024 - 13:26
In Topic: Crontab info or a Plugin Enigma2
9 March 2024 - 12:47
In Topic: Crontab info or a Plugin Enigma2
9 March 2024 - 11:51
Hello, finally I was able to achieve my goal. From shell with "crontab -e" command the vi editor is opened. Now I had to press "i" key to switch from command mode to text mode. Then I added this two lines:
15 8 * * * reboot 25 8 * * * wget -O /dev/null -q http://root:@localhost/web/powerstate?newstate=0
Then I pressed the "ESC" key and then wrote ":wq" for exit saving changes. After that if you write "crontab -l" then you can see that the file var\spool\cron\crontabs\root has been properly updated and the crontabs will be executed inmediately without reboot first and they are persistent after rebooting the receiver anytime.
Thank you all for your help and support. Excuse me for my bad English written level and have a nice day.
In Topic: Crontab info or a Plugin Enigma2
28 February 2024 - 17:11
You doublecheck what the location of the crontabs are, see it is /var/spool/cron/crontabs, and then you continue by creating them somewhere else?
Also, why do you feel the need to restart your box daily? I never restart my boxes, only if they are flashed or I need to boot another image.
root@vuduo4k:~# uptime 12:10:51 up 54 days, 19:03, load average: 0.03, 0.01, 0.00
Hello and thank you for your help and support. I need the daily restart and stand by for some "EPG Importer" reasons, but this is not the clue...thanks.
I can confirm that there's a "root" file under "var\spool\cron\crontabs" and its default content is:
30 * * * * /usr/bin/ntpdate-sync silent
If I apply this:
(crontab -l 2>/dev/null; echo "15 08 * * * wget -O /dev/null -q http://127.0.0.1/web/powerstate?newstate=6") | crontab - (crontab -l 2>/dev/null; echo "25 08 * * * wget -O /dev/null -q http://127.0.0.1/web/powerstate?newstate=5") | crontab -
Then its content is updated to:
30 * * * * /usr/bin/ntpdate-sync silent15 08 * * * wget -O /dev/null -q http://127.0.0.1/web/powerstate?newstate=6 25 08 * * * wget -O /dev/null -q http://127.0.0.1/web/powerstate?newstate=5
Maybe I am making a mistake here?
I realize that is not necessary to create "mkdir /etc/cron/crontabs" because the crontabs are not stored there so I deleted that folder.
And I would repeat thank you all for your help and support again.
In Topic: Crontab info or a Plugin Enigma2
28 February 2024 - 15:54
Hi,
You have an option in OpenPLi to start the box into standby, so when you reboot it it will go by itself in standby. So there is no need to achieve this by cron.
To include entries in cron you should type:
crontab -eAnd there place the cron command that you want to use.
Thank you but this is not related to my goal. What I need is restarting the box everyday at 08:15 and going to standby at 08:25. The option you wrote is not what I need. Thank you otherwise.
- Forums
- → Viewing Profile: Posts: daviddrf