|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
||||
|
||||
|
List All Cron Jobs?
I'm more a programmer than a sys admin, but I've been having to do a little admin stuff lately and I was just wondering if there was a way as root to list all the cron jobs set for each user. I am trying to consolidate the cron jobs of all of my predecessors (and my own) into 1 account to make it easier to manage everything down the road.
__________________
PostgreSQL, it's what's for dinner... |
|
#2
|
||||
|
||||
|
Go to /var/spool/cron and check the files there. Each file should correspond to the login accounts of each user.
|
|
#3
|
||||
|
||||
|
Thx for the info! Would that be the only place I need to check? Right now it seems there's only 1 file in there and it only has 1 line in it, but I know that there are more automated tasks being run every night (I get emailed the results from each run). Is there another place I would need to check? Thanks,
-b |
|
#4
|
||||
|
||||
|
The other place would be /etc/crontab.
|
|
#5
|
|||
|
|||
|
for SuSE eg. i know they have an entry in /etc/crontab that checks /etc/cron.daily/*, /etc/cron.monthly/* and so on. you need to check the scripts that are run by cron if they are calling other scripts too...
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#6
|
|||
|
|||
|
crontab -l <user>
the superuser may specify a different username than their own. if you want to see the contents of /etc/cron* in one pretty printout, i think you'll have to write your own shell script. |
|
#7
|
||||
|
||||
|
Thanks all! I think I found everything in /etc/crontab but I'll check out all the other suggested places as well to make sure.
Thanks again. -b |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > List All Cron Jobs? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|