Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Showing ALL Cron Jobs on system 1

Status
Not open for further replies.

Michael42

Programmer
Joined
Oct 8, 2001
Messages
1,454
Location
US
How can I easily display all cron jobs for all user accounts on a system? This could be useful when scheduling jobs (avoiding conflicts ect.).

At this time I manually look in all files in /var/spool/cron/crontabs

Thanks for your advice! 8-)


Michael
 
todups,

Thanks for the reply. I thought perhaps crontab -l shows just the crontab for the current user and crontab -l <username> shows for an explicit user. In testing I think this is still the case.

I was looking for a way to show ALL cron jobs on a system for ALL users?

What is your understanding on this?

Thanks again,
Michael
 
I think you are going to have to write a script to loop through your users while doing the crontab -l and redirect it to a file or your screen. good luck
 
[tt]cd /var/spool/cron/crontabs
cat *[/tt] Annihilannic.
 
Thanks. This is a very easy solution. Michael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top