Linux共通命令---タイミングタスク
2800 ワード
linuxタイミングタスクcrontabコマンドオプションは基本的にユーザー操作オプションのみ:-u指定ユーザー-lあるユーザータスク計画をリストする-rあるユーザータスクを削除する-eあるユーザータスクを編集する
ユーザーのタイミングタスクcrontab-u root-lの表示
すべてのユーザーを表示するには、/etc/passwdファイルのユーザー名に基づいてスクリプトユーザータイミングタスク/var/spool/cron/を列挙し、rootとして見てください:cd/var/spool/croncat*
eg:以下の通り
linux通过塔斯克进行经常实行的方法
ユーザーのタイミングタスクcrontab-u root-lの表示
すべてのユーザーを表示するには、/etc/passwdファイルのユーザー名に基づいてスクリプトユーザータイミングタスク/var/spool/cron/を列挙し、rootとして見てください:cd/var/spool/croncat*
eg:以下の通り
12:15,12:30 238.213 , 12:45 239.57 238.213: 15 0 * * * /usr/bin/wget -O /dev/null --spider -t 1 -T 30 'http://192.168.238.213:8080/template/ladyproduct/intf/intf4ZhongSou.jsp?status=1&cId=1393' >/dev/null 2>&1
30 0 * * * /usr/bin/wget -O /dev/null --spider -t 1 -T 30 'http://192.168.238.213:8080/template/ladyproduct/intf/intf4ZhongSou.jsp?status=-1&cId=1393' >/dev/null 2>&1
45 0 * * * rsync 238.213:/data/web/pclady-photo/dataxml/data_normal_*.xml -->239.57
238.213:/data/web/pclady-photo/dataxml/data_forbidden_*.xml -->239.57