Configure crontabs in Linux and Solaris, respectively

zhaozj2021-02-16  105

In linux and Solaris are arranged below crontab Date: 2004/07/30 Author: zcatlinux Source: zclinux

## SET CRONTAB TIME

IF ["$ OS" = "linux"]; then echo "10 3 * * * root /usr/glog.sh" >> / etc / crontab service crd RestartELSE ECHO "10 3 * * * /usr/glog.sh ">> / var / spool / cron / crontabs / root for pid in` ps - EF | GREP CRON | SED -E '/ GREP / D' | awk '{print $ 2}' `do kill -9 $ PID DONE RM -rf /etc/cron.d/fifo / usr / sbin / cronfi

转载请注明原文地址:https://www.9cbs.com/read-11104.html

New Post(0)