LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-05-2006, 02:40 AM   #1
pxumsgdxpcvjm
Member
 
Registered: Aug 2005
Posts: 235

Rep: Reputation: 30
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?
 
Old 09-05-2006, 03:41 AM   #2
rhce1arun
LQ Newbie
 
Registered: Sep 2006
Posts: 13

Rep: Reputation: 0
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
 
Old 09-05-2006, 04:42 AM   #3
pxumsgdxpcvjm
Member
 
Registered: Aug 2005
Posts: 235

Original Poster
Rep: Reputation: 30
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
 
  


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
cron job runs but will not write to logfile c_curtis Linux - General 10 06-30-2006 09:25 AM
Cron job rust8y Linux - Newbie 3 05-18-2006 09:06 AM
How to write a script to run bitdefender antivirus as a cron job? ginda Linux - Software 1 03-10-2005 08:08 PM
CRON Job tommytomato Fedora 12 09-13-2004 12:38 AM
cron job? luap Linux - Software 2 03-16-2003 08:48 AM

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

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

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
Open Source Consulting | Domain Registration