User Tools

Site Tools


list_all_crons

List cron for a specific user:

crontab -u username -l

List crons for every user

for user in $(cut -f1 -d: /etc/passwd); do echo -$user-; crontab -u $user -l; done

for cron in `ls -1 /var/spool/cron/crontabs/`; do echo "${cron}'s crontab";crontab -l -u $cron | grep -v '#' ;echo;done

Viewing Cron Start Time

date; echo; ps -ef --sort=start_time | grep php | head -n 15

list_all_crons.txt · Last modified: 2024/05/23 07:26 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki