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 gkittelson 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
Oct 8, 2001
1,454
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! :cool:


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
 
Thanks. This is a very easy solution. Michael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top