|
If I understand the crontab format correctly, the line below will try
to run 'my_boinc_app' once a minute, every minute, all day long!!
> Ok, thanks a lot for your help.
> Just to make sure the crontab line would be something like this?:
>
> * * * * * cd/my_boinc_dir; ./my_boinc_app > /dev/null 2> /dev/null
This line is a little better behaved:
0,15,30,45 * * * * cd /my_boinc_dir/; if ps -aux | grep -v grep | grep "boinc"; then exit; else ./my_boinc_app > /dev/null 2> /dev/null; fi
It will check every 15 minutes to see if there is an active process with the string 'boinc' in it's name. If there is none, it will start 'my_boinc_app".
(you may be able to simplify the begining part from '0,15,30,45' to '*/15')
|