簡體   English   中英

找不到 crontab 定義

[英]Can't find crontab definition

在 Debian 10 機器上, grep CRON /var/log/syslog記錄CRON[455]: (root) CMD (/script.sh)

但是crontab -e -u root是空的。

我在哪里可以找到 root 用戶的 crontab 作業的定義?

首先,檢查是否為其他用戶定義了 cron 作業,然后您可以檢查以下文件,它可能包含一些 cron 作業

[root~]$ cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# For details see man 4 crontabs

# Example of job definition:
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  * user-name command to be executed

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM