@
@
@eashla2015-12-13 05:54:19
linux
@eashla, 2015-12-13 05:54:19

Why is the script not working through the cron scheduler?

9af0aec183bc4ad986b9faf1503d3911.jpg
e2c72d90c7324e38a75acdd180990c3d.jpg
ecb3c137042b42d082335d80d1f2aa64.jpg
In general, the script works manually and creates a normal archive with a normal size, and if cron works, then for some reason I get a 45 kb file. Maybe I missed something - tell me how to be.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2015-12-13
_

what does the script output to stdout when run from cron?
The most common mistake is that when a user logs in, all sorts of .bashrc and .profile are executed, but not when launched from cron, so it’s trite in PATH there may not be the necessary paths to, for example, mount.cifs

S
SergeyShibka, 2015-12-14
@SergeyShibka

add root in the task launch line in the cron:
0 22 * ​​* * root /etc/skript and the cron
log in case of not processing, you need to look, it will be immediately visible there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question