I know that there are some cron jobs (run every minute) scheduled in my Ubuntu.
How do I track what's running them,
when the cron files (sudo su; crontab -e
) are empty?
I know that there are some cron jobs (run every minute) scheduled in my Ubuntu.
How do I track what's running them,
when the cron files (sudo su; crontab -e
) are empty?
Send the
cron.*
syslog facility to its own file, see How to check cron logs in Ubuntu. Review syslog crontab lines for edits, and the CRON lines for jobs run.Review the crontab spool for users, the system wide crontab, and the .d directory.
The rest of the cron directories contain just scripts to run on the specified interval. These won't contain something run every minute.
Linux allow administrator to check all cron jobs running on the server, since you are running Ubuntu you need to go to
/var/spool/cron/crontabs
thengrep
all configured cron to see what job is running every minutegrep -r "*/1" *
.Also you need to check if there is a user running a cron job that contains a repetitive condition.
#to check all job run timeline
#to check each job full log
#in the above file you can find the whole log
just shift + g so you can see all new logs text
#to check live file / log update