I have nabilo darkstar 2 on my dreambox 500S and I want to write a script that checks to see if CCcam is up and if it is not or if it is frozen it then starts it, I know some images have crontab in it but Darkstar dosent, any ideas?
Script to check if CCcam is up
Collapse
X
-
I am certain DarkStar 2 has crontab daemon installed as default
telnet to box and type
ps -aux
and check for a crontab daemon running as a process
also type following to see what is scheduled
crontab -l
if cron tab daemon doesnt start at boot up, you could modify the /etc/init.d/bootup and add it on startup -
to add a script to run in crontab - type following
crontab -e and add your script as follows (it uses VI as the editor)
* * * * * command to be executed
- - - - -
| | | | |
| | | | ----- Day of week (0 - 7) (Sunday=0 or 7)
| | | ------- Month (1 - 12)
| | --------- Day of month (1 - 31)
| ----------- Hour (0 - 23)
------------- Minute (0 - 59)
so if you want your script to run every 5 mintes, the command is
5 * * * * <nameofscript>
your other queries are answered in my original post
to be honest here, you may need to read up on Linux operating system so you fully understand what to do when it comes to scripts and crontabs - can be very frightning if you have never used Linux before.Comment
Comment