Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-31-2009, 11:53 AM   #1
LQ Newbie
Registered: Aug 2009
Posts: 15

Rep: Reputation: 0
Show currently running cron jobs

For the life of me i cant find the proper command for showing running cron jobs.

Anybody know who to list currently running crons?
Old 08-31-2009, 01:27 PM   #2
Senior Member
Registered: May 2006
Distribution: Caldera, CTOS, Debian, FreeBSD, Mac OS X, Mandrake, Minix, OpenBSD, Slackware, SuSE
Posts: 1,757

Rep: Reputation: 80
crontab -l [user]
List crontabs for user which are located in /var/spool/cron/crontabs.

I don't know of any command or way to list actual running cron jobs, unless you grep running process for crond and if it's running presume that all user's cron jobs are in fact running, or will run at the specified time unless there's a problem with the job. crond just runs every minute looking for crontabs to execute.
Old 08-31-2009, 01:33 PM   #3
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Have you tried looking for a process group with root's /usr/sbin/cron process as the leader? I'm a bit busy right now to test the idea.
Old 08-31-2009, 02:00 PM   #4
Registered: Nov 2005
Location: California
Distribution: ubuntu 10
Posts: 162

Rep: Reputation: 33
Run ps -ejH to test catkin's theory
Old 08-31-2009, 04:40 PM   #5
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,402
Blog Entries: 1

Rep: Reputation: 65
You may have also system wide (not user's jobs) cron jobs stored at /etc/cron.hourly, cron.daily, cron.weekly, cron.monthly and crond.d.
Old 08-31-2009, 05:39 PM   #6
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Well, running cronjobs will be in your process table. So you could keep an eye on them with ps(1), as mentioned.

You could also tail /var/log/cron (depending on distro).
Old 09-01-2009, 01:44 AM   #7
Registered: Apr 2009
Distribution: Red Hat/CentOS
Posts: 108

Rep: Reputation: 19

goto /var/spool and type

ls *cron*
it will show the cron jobs for daily,monthly,weekly etc
Old 09-01-2009, 09:18 AM   #8
LQ Newbie
Registered: Aug 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks for all the reply's, and i will try the suggestions.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron jobs not running henrybg Linux - Enterprise 10 01-28-2013 11:23 AM
cron is running but jobs aren't kalahari875 Mandriva 4 03-15-2006 04:47 PM
One user's cron jobs not running dcroxton Linux - Software 5 03-06-2006 04:33 PM
shutdown only if no cron jobs are running Red Squirrel Linux - Software 4 08-31-2005 02:00 PM
cron jobs not running scarr3d Linux - Software 7 05-25-2004 05:21 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration