LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 08-31-2009, 10:53 AM   #1
mr.me
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, 12:27 PM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: Caldera, CTOS, Debian, FreeBSD, Mac OS X, Mandrake, Minix, OpenBSD, Slackware, SuSE
Posts: 1,757

Rep: Reputation: 79
Code:
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, 12:33 PM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,546
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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, 01:00 PM   #4
djeikyb
Member
 
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, 03:40 PM   #5
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Rep: Reputation: 63
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, 04:39 PM   #6
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
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, 12:44 AM   #7
saifkhan123
Member
 
Registered: Apr 2009
Distribution: Red Hat/CentOS
Posts: 108

Rep: Reputation: 19
!!!!

goto /var/spool and type

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

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


Reply


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 10:23 AM
cron is running but jobs aren't kalahari875 Mandriva 4 03-15-2006 03:47 PM
One user's cron jobs not running dcroxton Linux - Software 5 03-06-2006 03:33 PM
shutdown only if no cron jobs are running Red Squirrel Linux - Software 4 08-31-2005 01:00 PM
cron jobs not running scarr3d Linux - Software 7 05-25-2004 04:21 PM


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

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