LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   all cron job details with any single command (https://www.linuxquestions.org/questions/suse-opensuse-60/all-cron-job-details-with-any-single-command-799161/)

mayrus9 03-31-2010 11:44 AM

all cron job details with any single command
 
Hi friends,

I am using SLES10 and i checked with command crontab -l

and when i compared it with the cron.d/daily/monthly/hourly , all they are different.

is there any single command that list out all the cronjobs that exist under the system.

Regards,
Mayrus

centosboy 03-31-2010 12:25 PM

Quote:

Originally Posted by mayrus9 (Post 3919325)
Hi friends,

I am using SLES10 and i checked with command crontab -l

and when i compared it with the cron.d/daily/monthly/hourly , all they are different.

is there any single command that list out all the cronjobs that exist under the system.

Regards,
Mayrus

no, because users cron and system cron resides in different places.
users - /var/spool/cron
system - /etc/cron

unless you cat /etc/cron* /var/spool/cron*

mayrus9 04-01-2010 02:28 AM

Hi ,

Thanks for giving useful info.

prpednek 04-01-2010 03:31 AM

Quote:

Originally Posted by mayrus9 (Post 3920054)
Hi ,

Thanks for giving useful info.

Some more info about cron jobs for all users :

for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done


Cheers,
Prasad.


All times are GMT -5. The time now is 01:49 PM.