Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-02-2003, 03:12 AM   #1
LQ Newbie
Registered: Jul 2003
Location: San Jose, CA
Distribution: Debian
Posts: 3

Rep: Reputation: 0
Writing a crontab file

How do I write a crontab file so updatedb will run every day at midnight? Once a week?
Thanks in advance for your help.

Old 11-02-2003, 03:55 AM   #2
Senior Member
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
hmmm.... hope this helps you.
Old 11-02-2003, 04:27 AM   #3
Registered: Nov 2003
Location: Norway
Distribution: Debian Sarge
Posts: 38

Rep: Reputation: 15
Add this line to your /etc/crontab file.

23 0 * * 0 root updatedb

To run updatedb 23:00 once a week.

or this line...

23 0 * * * root updatedb

To run updatedb each day at 23:00.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Crontab - How can i run the scheduled file? - Please help me b:z Linux - General 6 04-01-2005 05:23 AM
how to add java file in crontab ??? kirti Linux - General 1 12-08-2004 04:09 AM
Crontab file located in,,, where? jon_k Linux - Software 4 07-04-2004 01:26 PM
CRONTAB file scottpioso Linux - General 14 11-29-2003 01:38 PM
Crontab and file attachments squadja Linux - Newbie 0 07-30-2003 09:41 AM > Forums > Linux Forums > Linux - Software

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration