Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-22-2006, 09:08 AM   #1
LQ Newbie
Registered: Feb 2006
Location: Harrisonburg, VA
Posts: 4

Rep: Reputation: 0

How can i create a crontab for user apache to copy the file /var/www/ to /var/named/chroot/var/named/ every 5 minutes. Thanks. Also I've tried using the crontab but i don't know how to write or save it.
Old 02-22-2006, 09:59 AM   #2
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
you edit a user's crontab by doing 'crontab -e'.

it would be something like:

0,5,10,15,20,25,30,35,40,45,50,55 * * * * <your script / command >

although i think you can do:

*/5 * * * * <your script / command >

try it out. note you'll have to su (switch user ) to a user to edit it's crontab.

then save and exit.....

crontab -l to list the commands...

you might also have to edit a file called cron.allow in /etc.

Last edited by satinet; 02-22-2006 at 10:02 AM.


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 Xris718 Linux - General 5 08-15-2005 01:03 PM
crontab ashley75 Linux - General 3 07-21-2005 10:48 AM
Crontab wormraper Debian 4 05-15-2005 01:01 AM
How to use crontab ? Dakkar Linux - Newbie 2 01-22-2004 10:49 AM
system-wide crontab in /etc/crontab ner Linux - General 2 11-18-2003 12:35 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:35 PM.

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