D
D
Dmitry Filatov2014-04-16 14:12:48
ubuntu
Dmitry Filatov, 2014-04-16 14:12:48

Ubuntu crontab Not running script?

crontab -e
#
# mh dom mon dow command
12 * * * * . /home/web/sitecheker/cron_run.sh
script content
#! /bin/bash
workon sitecheker
python /home/web/sitecheker/run.py
deactivate
If just run in console . /home/web/sitecheker/cron_run.sh , everything works fine. It does n't start with cron. I don't run it
as root.
What could be the problem? I already broke my head

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GdRta, 2014-04-16
@DamDamich

Apparently, you do not have environment variables specified. Write the full path /usr/bin/python.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question