Jump to content

Entware-Keenetic NTFS crond не работает


Recommended Posts

 

настроил crond как указано здесь в пункте 2:

 

Но не работает однако

~ # ls -l /opt/var/spool/cron/crontabs
-rwxrw-rw-    1 root     root           525 Nov 11 08:12 crontab

содержимое файла кронтабс:

~ # cat /opt/var/spool/cron/crontabs/crontab
PATH=/opt/bin:/opt/sbin:/sbin:/usr/sbin:/bin:/usr/bin
# Your LED control schedule for front leds #
#43 16 * * * ndmq -p 'system led shutdown front' -P message
#44 16 * * * ndmq -p 'no system led shutdown' -P message
#ЛХМСРЮ ВЮЯ ДЕМЭ_ЛЕЯЪЖЮ ЛЕЯЪЖ ДЕМЭ_МЕДЕКХ ЙНЛЮМДЮ
*/1 * * * * date >> /opt/tmp/crontest.txt
~ #

процесс кронд запущен:

~ # ps | grep cron
  273 root      1628 S    /opt/sbin/crond -L /dev/null
  282 root      1032 S    cron -s
 4064 root      1576 S    grep cron
~ #

результата нет:

~ # ls -l /opt/tmp
drwx------    1 root     root             0 Oct 29 00:32 mc-root
srwxr-xr-x    1 root     root             1 Oct 29 00:31 php-fastcgi-1.socket-0
srwxr-xr-x    1 root     root             1 Oct 29 00:31 php-fastcgi-2.socket-0
srwxr-xr-x    1 root     root             1 Oct 29 00:31 php-fastcgi-2.socket-1
srwxr-xr-x    1 root     root             1 Oct 29 00:31 php-fastcgi-2.socket-2
srwxr-xr-x    1 root     root             1 Oct 29 00:31 php-fastcgi-2.socket-3
srwxr-xr-x    1 root     root             1 Oct 29 00:31 php-fastcgi-2.socket-4
~ #

 

как понять, почему не работает, как запускать кронд чтобы увидеть текст сообщений о проблемах?

 

 

 

Link to comment
Share on other sites

У меня тоже с начало не работало.

Оказалось был создан файл планировщика root  а не crontab

/var/spool/cron/crontabs/root  Возможно я где  то ошибся

Цитата

Работаем с планировщиком:
crontab -e

Проверяем задачи планировщика:
crontab -l

С уважением, Netman.

 

Link to comment
Share on other sites

Благодарим, Вас, за баг-репорты и обязательно исправим "это недоразумение" в следующей сборке.

#ржунимагу

 

Link to comment
Share on other sites

ух ты, спасибо. 

создал через 

EDITOR=nano crontab -e

оказалось, что файл создаётся по другому пути, нежели указано в инструкции п.2

т.е. создался в /opt/var/cron/crontabs

вместо 

/opt/var/spool/cron/crontabs

, как указано в инструкции.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...