LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cron Job help...how to write this command? (http://www.linuxquestions.org/questions/linux-newbie-8/cron-job-help-how-to-write-this-command-480517/)

pxumsgdxpcvjm 09-05-2006 02:40 AM

Cron Job help...how to write this command?
 
So I'm new to Linux and Cron jobs etc.

I'm using cPanel X to create a cron job..

how do I make it edit a line of code in a file?

rhce1arun 09-05-2006 03:41 AM

hi
for cron job
you need to follow the steps


chkconfig crond on
service crond restart


crontab -e -u root ---- this is for creating cron for a user *** here user is root you can give any name

#min Hour DoM Month Dow command
0 4 * * 1,3,5 mail -s "boo" $LOGNAME < boo.txt


this particular cron will send a message to the logged user a message from boo.txt on mon wed and fri every 4 hours

pxumsgdxpcvjm 09-05-2006 04:42 AM

I guess you're not familiar with the cron job manager in cpanel...

here's what it looks like.

http://img168.imageshack.us/img168/3466/ccronme6.png


All times are GMT -5. The time now is 03:22 PM.