LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-10-2005, 08:39 AM   #1
petenyce
Member
 
Registered: Sep 2005
Posts: 39

Rep: Reputation: 15
Cron Job


Im new to linux and i want to set up a cron job to run every friday at 1000 pm. The file is test.sh. and i located in /usr/etc

Could someone giv eme a example please on how to run a cron job to run every friday at 1000pm


Thanks
 
Old 10-10-2005, 08:42 AM   #2
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-current
Posts: 780

Rep: Reputation: 66
'man crontab' explains it pretty well, with examples.

Cheers, Leon.
 
Old 10-10-2005, 08:49 AM   #3
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
http://www.google.co.uk/search?hl=en...e+Search&meta= also
 
Old 10-11-2005, 12:29 PM   #4
petenyce
Member
 
Registered: Sep 2005
Posts: 39

Original Poster
Rep: Reputation: 15
ok

i cant fiqure it out. I have test.sh and i want it to run every friday at 1000pm.
DO i just place the file in cron daily, an dchange the contab config? or do i need a text file with the path of test.sh???


Confused


thanks

Pete
 
Old 10-11-2005, 02:22 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
crontab -e
i
0 10 * * fri test.sh > /dev/null
ESC
:wq
 
Old 10-11-2005, 04:03 PM   #6
Sp0ngeWorthy
LQ Newbie
 
Registered: Oct 2005
Distribution: 10.0,2005LE,2006
Posts: 10

Rep: Reputation: 0
tinkster is very wise.

follow his instructions to the letter and you'll be good to go.

also, do you have Webmin installed and running? It's great for helping new users and power users.
 
  


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 working2hard Programming 6 07-28-2004 09:12 PM
Cron job rajasekarvr Linux - General 4 05-03-2004 05:35 PM
cron job ? johnyy Linux - Software 3 12-10-2003 06:00 PM
Cron Job imanahmadi Linux - Newbie 1 07-03-2003 11:39 PM
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 05:49 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