- Script writing regular tasks, such as: test.sh
#!/bin/bash echo "hello"
- Setting regular tasks
crontab -e # timing task editing
* / 1 * * * * bash /usr/local/sh/test.sh >> /usr/local/sh/log/reloadnginx.log # reboot once every minute - Restart scheduled task service
/etc/init.d/cron restart
ubuntu increase regular tasks
Guess you like
Origin www.cnblogs.com/logBlog/p/11940445.html
Recommended
Ranking