The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to start/stop cron jobs on live server varaprasadu SUN Solaris 2 03-12-2008 10:09 PM
Cron Jobs Remi SUN Solaris 2 01-03-2007 04:12 PM
cron jobs rmarral UNIX for Advanced & Expert Users 3 12-05-2005 08:59 AM
cron jobs vijaysabari Shell Programming and Scripting 4 06-23-2004 01:32 PM
CRON Jobs eludlow UNIX for Dummies Questions & Answers 4 05-28-2004 05:24 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-17-2008
Sreejith_VK
Guest
 

Posts: n/a
Cron jobs in a unix server

Dear all,

Is it possible to view all the cronjobs set under all the userids in a server.
Or view all the cronjobs in the server?

Thanks in anticipation,
Sree.
Reply With Quote
Forum Sponsor
  #2  
Old 09-17-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
Generally it is considered a security risk to give ordinary users access to cron or at.
Anyway
Code:
crontab -l -u <username>
lists the crontab for a given user. ...to start you off -
Code:
awk -F: '{ print $1 }' /etc/passwd |\
while read usern
do
   crontab -l -u $usern
done
run as root.
Reply With Quote
  #3  
Old 09-17-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
Linux (and I suppose others too) also run whatever is in /etc/cron.{d,daily,hourly,monthly} and /etc/crontab
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:13 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0