I am trying to setup a cron job but when I try to edit my crontab and add this line
*/5 * * * * /usr/local/bin/check_desktop >/dev/null 2>&1
I get the following error :
"-":2: premature EOF
Invalid crontab file. Syntax issues were found.
I have googled but nowhere on the internet is their any mention of “-”:2: anywhere.
Can someone please explain what I am doing wrong ?
I have a linefeed at the end of the line that I have added to the crontab file.
Thank You.
The script that I am trying to run is to check if xfdesktop is running and if not then to start it. Because xfdesktop keeps disappearing with the following error in xsession-errors.
** (xfdesktop:36497): CRITICAL **: 21:49:29.252: build_property_prefix: assertion 'first_xfwmonitor != NULL' failed
If someone could help me fix this error too I would be very grateful.
I am on an X86_64 machine running xfce desktop.
Thanks.