[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Strange crontab message regarding execle



On 31 October 2016 at 11:28, Christian Seiler <christian@iwakd.de> wrote:

It looks like cron is trying to execute a comment line - and of course a
binary with the name "#Edit this file to .... " doesn't exist on your
system. (execle is one of the system calls used for executing programs.)

Could you paste the full contents of the crontab file that contains this
entry?

Thanks Christian.  Your  answer led me to the solution.  Somehow a linefeed character was removed in crontab -e causing a line like this:
 

SHELL=/bin/sh# Edit this file to introduce tasks to be run by cron.# 

which I corrected to
 
SHELL=/bin/sh
# Edit this file to introduce tasks to be run by cron.# 

 
Also, what implementation of cron are you using in what version? You can
get that via:
dpkg -l cronie bcron-run systemd-cron cron
(Those are the four providers of "cron-daemon" in testing at the moment.)

I have only cron installed.

Regards
Johann


--
Because experiencing your loyal love is better than life itself,
my lips will praise you.  (Psalm 63:3)

Reply to: