Вы не зашли.
Главная » Компьютеры/Софт » Не выполняется команда в кроне
#1. TLENS Off (14)
Moderator
2013.05.18 12:12
команда /usr/bin/php /home/www/CostructDB/GetVideoFile/pars.php >/dev/null 2>&1
Если выполняю в ручную в консоле то все нормально но в самом кроне не хочет выполняться. Из за чего может быть такая трабла?
Код:
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
 
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
*/10 * * * * root /usr/bin/php /home/www/CostructDB/GetVideoFile/pars.php >/dev/null 2>&1
#2. WapStyle Off (3)
Участник
2013.05.23 16:04
в pars.php инклуды есть?
#3. Gemorroj Off (107)
Administrator
2013.05.23 18:06
WapStyle написал:
в pars.php инклуды есть?
кстати да, хорошая мысля)
#4. TLENS Off (14)
Moderator
2013.05.24 12:12
ch внутри скрипта прописан. Все есть раз выполняеться код с командной строки
Добавлено спустя   1 минуту  58 секунд:
Нарыл в syslog такую строку
May 24 12:44:01 cs11116 /usr/sbin/cron[2254]: (*system*) RELOAD (/etc/crontab)
May 24 12:44:01 cs11116 /usr/sbin/cron[2254]: (*system*) ERROR (Missing newline before EOF, this crontab file will be ignored)
В общем проблема решена
Страниц: 1
Главная
WEB
PunBB Mod v0.6.2
0.013 s