LinuxQuestions.org
Register a domain and help support LQ
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 07-12-2005, 05:10 PM   #1
wbatzle
LQ Newbie
 
Registered: Jul 2005
Location: Nt. Vernon NY
Distribution: Mandriva
Posts: 3

Rep: Reputation: 0
cron job


I am fairly new to linux and would like to know exactly what to do to schedule my slimserver to restart itself once a week. I have some basic knowledge like how to edit files in vi and what not. Matter of fact my server is at a friend's house so all changes I make are edited in vi. If anyone out there can help it would be greatly appreciated.
 
Old 07-12-2005, 05:15 PM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
links out here would help you a lot.

Tux,
 
Old 07-12-2005, 05:19 PM   #3
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
You can do what you want with the command 'crontab -e' this will launch vi, with the current crontab file open, one you've edited it you just save and close and the new file will be used.

The format is very straight forward # at the beggining marks a comment, all the actual jobs start with six fields for timing and a final one with the command., this link will help you Automating tasks with cron
 
  


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 petenyce Linux - Newbie 5 10-11-2005 05:03 PM
cron job working2hard Programming 6 07-28-2004 10:12 PM
cron job ? johnyy Linux - Software 3 12-10-2003 07:00 PM
Cron Job imanahmadi Linux - Newbie 1 07-04-2003 12:39 AM
cron job? luap Linux - Software 2 03-16-2003 09:48 AM


All times are GMT -5. The time now is 03:29 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