Show currently running cron jobs
is the cron job still running | hanging cron job | which cron jobs are running now | cron job running for hours | ps | cron | processesps -eo pid,user,etime,cmd --forest | grep -A3 '[C]RON'For each job it starts, the cron service forks a child process named CRON, with the shell and the actual command below it. The tree view shows this chain with user and elapsed time (ELAPSED). A job running for several hours that should take minutes is probably hanging.
Note: The square brackets in the pattern prevent grep from matching itself. The main daemon appears as /usr/sbin/cron -f in lowercase and is therefore not matched.
Open question before approval: Prüfen, ob die von cron geforkten Kindprozesse auf Debian 12 in ps tatsächlich als /usr/sbin/CRON -f erscheinen und -A3 bei verschachtelten Jobs genug Zeilen zeigt.
Also searched as
- is the cron job still running
- hanging cron job
- which cron jobs are running now
- cron job running for hours