Webinoly is just the perfect tool for NGINX experts. Give it a try!
0 votes
507 views
by
I wrote a task script for automatic alarm, but he did not work.

but, Manual execution is working, I do not know which link is wrong.

Thank you.

~# ps aux | grep cron
root       452  0.0  0.0  29008  2924 ?        Ss   00:16   0:00 /usr/sbin/cron -f
root     11968  0.0  0.0  14224   960 pts/0    S+   10:34   0:00 grep --color=auto cron

~# crontab -l
MAILTO=mail@mail
15 3 * * 7 letsencrypt renew
*/2 * * * * root /opt/disk-alarm/disk_alarm.sh > /dev/null 2>&1

1 Answer

0 votes
by Expert

Check your syntax. Try:

*/2 * * * * /opt/disk-alarm/disk_alarm.sh

by
Thank you for your help.
crontab is working.
Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...