LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Create a Cronjob (https://www.linuxquestions.org/questions/linux-newbie-8/create-a-cronjob-926909/)

cefege 02-01-2012 06:39 AM

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.

repo 02-01-2012 06:44 AM

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


All times are GMT -5. The time now is 02:25 PM.