LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 03-31-2010, 11:44 AM   #1
mayrus9
LQ Newbie
 
Registered: Jun 2009
Location: India
Distribution: Redhat, Suse, Fedora,
Posts: 13
Blog Entries: 1

Rep: Reputation: 0
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
 
Old 03-31-2010, 12:25 PM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by mayrus9 View Post
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*
 
Old 04-01-2010, 02:28 AM   #3
mayrus9
LQ Newbie
 
Registered: Jun 2009
Location: India
Distribution: Redhat, Suse, Fedora,
Posts: 13

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Hi ,

Thanks for giving useful info.
 
Old 04-01-2010, 03:31 AM   #4
prpednek
LQ Newbie
 
Registered: Mar 2010
Location: India
Distribution: RHEL
Posts: 22

Rep: Reputation: 16
Quote:
Originally Posted by mayrus9 View Post
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.
 
  


Reply



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
Emulating a week-day cron job with the at command? devnull10 AIX 3 03-25-2010 05:08 PM
cron job fails, but command in crontab succeeds when directly entered rmunsch Linux - Server 2 02-16-2009 05:27 PM
Command not working in cron job, but works fine in root Roosta21 Linux - Software 4 11-22-2007 08:08 AM
cron job and boot command Thulemanden DamnSmallLinux 3 11-08-2006 12:22 AM
Cron Job help...how to write this command? pxumsgdxpcvjm Linux - Newbie 2 09-05-2006 04:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 01:33 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration