Why is only one wget command working in my crontab?

Solution 1:

Try adding newline at the end of your crontab.

Solution 2:

There's something about the text that's wrong. Edit your crontab in vim then show invisible characters.

:set invlist

You should be able to see and then correct it.


Solution 3:

I just spent some time trying the above answers (adding newlines, deleting newlines, etc.) on a system running cronie. Finally found there is a bug in cronie 1.5.3 that only executes the first cron job for each user. It's fixed in 1.5.4

https://github.com/cronie-crond/cronie/issues/30

Hope this saves someone some time...

Tags:

Wget

Cron