Re: Strange crontab message regarding execle

2016-10-31 Thread Johann Spies
On 31 October 2016 at 11:28, Christian Seiler  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)


Re: Strange crontab message regarding execle

2016-10-31 Thread Christian Seiler
On 10/31/2016 10:06 AM, Johann Spies wrote:
> I user testing/sid and do regular dist-upgrades.  Sometime last week these
> messages started to appear regarding one of my crontab-entries:
> 
> Subject: Cron  /usr/bin/fetchmail -L ~/.procmail/log >
> /dev/null 2>&1
> 
> /bin/sh# Edit this file to introduce tasks to be run by cron.#: execle: No
> such file or directory

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?

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.)

Regards,
CHristian



Strange crontab message regarding execle

2016-10-31 Thread Johann Spies
I user testing/sid and do regular dist-upgrades.  Sometime last week these
messages started to appear regarding one of my crontab-entries:

Subject: Cron  /usr/bin/fetchmail -L ~/.procmail/log >
/dev/null 2>&1

/bin/sh# Edit this file to introduce tasks to be run by cron.#: execle: No
such file or directory

The crontab entry looks like this:

*/5 * * * 1-5 /usr/bin/fetchmail -L ~/.procmail/log > /dev/null 2>&1

and was used like this for several years.

Which file is the message referring to?  I have search for execle on my
system and installed gnulib which contains execle.texi in the documentation
- the only package where apt-file search  could find execle except for
manpages-packages.

Regards
Johann

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