LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-01-2012, 06:39 AM   #1
cefege
Member
 
Registered: Jan 2012
Posts: 34

Rep: Reputation: Disabled
Create a Cronjob


I'm reading Introduction to Linux from tldp.

1)Create an at job that copies all files in your home directory to /var/tmp within half an hour. You may want to create a sub-directory in /var/tmp.


2)Make a cronjob that does this task every Monday to Friday during lunch.

I did 1).
I don't know how to do the second. I should use /etc/cron.daily? How should I edit it to do this?

The explanation in the book didn't help me much
http://tldp.org/LDP/intro-linux/html/sect_04_04.html


I'm using the latest Slackware.
 
Old 02-01-2012, 06:44 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
I don't know how to do the second. I should use /etc/cron.daily? How should I edit it to do this?
Take a look at
http://www.linuxhelp.net/guides/cron/
You don't need cron.daily
Just create the cronjob using
Code:
crontab -e
Kind regards
 
  


Reply


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
cronjob doing it twice why? joesto Linux - Newbie 4 11-17-2010 02:36 PM
cronjob janihemang Linux - General 1 05-10-2010 04:43 PM
cronjob dnaqvi Linux - General 5 04-26-2010 04:05 AM
cronjob xser Linux - Software 6 07-27-2008 09:38 PM
cronjob help meeh Linux - General 1 03-26-2004 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration