Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-12-2005, 04:10 PM   #1
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, 04:15 PM   #2
Senior Member
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

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

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

Rep: Reputation: 48
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


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 04:03 PM
cron job working2hard Programming 6 07-28-2004 09:12 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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration