S
S
shnicel2016-08-07 08:34:47
linux
shnicel, 2016-08-07 08:34:47

Why is debian cron not working?

crontab -e I add the line */1 * * * * bash /home/oleg/loading_script/test.sh to the end , I save
nothing happens, rebooting the cron also did not help, what is the reason then?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
Lindon_cano, 2016-08-07
@Lindon_cano

And if you looked at the log, you would see that cron tried to execute the task, complained that there was no line break after your task, and exited.
Enter press at the end.
Cron reacts nervously if there is no line break after the last job.

C
crawlander, 2016-08-07
@crawlander

*/1 is the same as just *, it is executed every minute. Either try to replace it, or specify a different denominator in the fraction. For example, every three minutes */3

O
OnYourLips, 2016-08-07
@OnYourLips

bash /home/oleg/loading_script/test.sh

Use full paths, not just bash.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question