-   Linux - Newbie (
-   -   Cron Job to write this command? (

pxumsgdxpcvjm 09-05-2006 03:40 AM

Cron Job 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 04:41 AM

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 05:42 AM

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

here's what it looks like.

All times are GMT -5. The time now is 11:29 PM.