E
E
Egor Peregudov2015-04-10 16:44:37
Task Schedulers
Egor Peregudov, 2015-04-10 16:44:37

Why doesn't crontab always complete what it's supposed to do?

There are such tasks in cron, judging by the script launch log, very often some tasks are skipped. And in the next hour they are executed in the specified minutes.
Why is this happening?
f32949db93a648628387f62960f98af4.PNG

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2015-04-10
@Stalk-p

What makes you think that tasks are not running? Maybe the remote site is not responding so the file is not showing up. Check the cron log.
PS You have several wgets running at the same time, apparently from the same site. This can be blocked from the other side. Divide your calls into two simple shell scripts and call them.
And read the cron syntax, you can use */5

V
Vlad Zhivotnev, 2015-04-10
@inkvizitor68sl

Your poor crown.
You can write in the format 2-57/5 * * * * and so on.
And "does not start" check in /var/log/syslog, there will be something like this:
Apr 10 16:59:01 isera CRON[7545]: (inkvizitor68sl) CMD (echo 1)
Apr 10 17:01:01 isera CRON [7864]: (inkvizitor68sl) CMD (echo 1)
Apr 10 17:03:01 isera CRON[7883]: (inkvizitor68sl) CMD (echo 1)
(my echo 1 was run by cron)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question