Where is the crontab file stored | Unix Linux Forums | UNIX for Advanced & Expert Users

  Go Back    


UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Where is the crontab file stored

UNIX for Advanced & Expert Users


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-18-2008
rajbptl rajbptl is offline
Registered User
 
Join Date: Apr 2007
Last Activity: 28 September 2011, 7:37 AM EDT
Location: India
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
PHP Where is the crontab file stored

i want find the place where the crontab file is stored i dont mean in /etc/cron. when we list crontab -l it will list the schedule jobs , does this content is stored in some directory as a file..
Please clarify
Sponsored Links
    #2  
Old 01-18-2008
adderek adderek is offline
Registered User
 
Join Date: Sep 2007
Last Activity: 12 August 2010, 12:56 PM EDT
Location: Poland
Posts: 123
Thanks: 2
Thanked 3 Times in 3 Posts
PHP

Don't expect it to be in a file. Depending on the implementation on some systems it could be kept in a DB or anywhere else. Don't even dig into it.
If you really need this then specify why.
Sponsored Links
    #3  
Old 01-18-2008
ennstate's Avatar
ennstate ennstate is offline
Registered User
 
Join Date: Mar 2007
Last Activity: 10 September 2012, 1:18 PM EDT
Location: Stockholm
Posts: 230
Thanks: 1
Thanked 4 Times in 4 Posts
I guess it will be stored /var/spool/cron/ but we only root has permission for those directories

Thanks
Nagarajan G
The Following User Says Thank You to ennstate For This Useful Post:
marioser1 (07-20-2013)
    #4  
Old 01-18-2008
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon (Administrator Emeritus)
 
Join Date: Aug 2001
Last Activity: 28 October 2014, 3:35 PM EDT
Location: Ashburn, Virginia
Posts: 9,930
Thanks: 64
Thanked 437 Times in 261 Posts
If root edits the files directly, changes will not take effect in most cases and can even be lost. With most versions of cron, the answer to the question is "in memory". Those files are read only as cron starts up. The alternative would be to reread them every minute which would put quite a load on the system. It is critical that you use the crontab command to view and change those files. The crontab command interacts with cron to change the tables in cron's memory.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Extract rows from file based on row numbers stored in another file shoaibjameel123 Shell Programming and Scripting 3 10-06-2011 04:03 AM
effects of bin file stored in nfs & run as daemon jao_madn IP Networking 3 07-28-2011 03:26 PM
Where are package contents stored for a file, or why aren't they visible w/o right clicking the file Straitsfan OS X (Apple) 2 05-27-2011 06:30 PM
How to get the Username stored in another file vnatarajan UNIX for Dummies Questions & Answers 1 10-15-2008 08:36 AM
Directory where spooled file is stored babulilly UNIX for Advanced & Expert Users 1 10-22-2002 03:34 AM



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