S
S
Sergey Alekseev2019-01-08 12:48:08
Task Schedulers
Sergey Alekseev, 2019-01-08 12:48:08

Crontab, why is the task not starting?

There is such a task:

43 14 * * * cd /var/lib/jenkins/workspace/danlk_test_try/ && sh load_dump_db_test.sh >> /home/test_dump.log 2>&1

Here I want to run a script every day at 2:43 pm and write the output stream to a file. The task doesn't even run.
What's wrong here?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2019-01-08
@serj2000

Try like this
Or even so
Most likely, when running a job from cron, you do not have a path to /bin in your PATH (to run sh)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question