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 05-23-2004, 12:25 PM   #1
DriveMeCrazy
Member
 
Registered: Mar 2004
Posts: 70

Rep: Reputation: 15
crontab question


Does this works?

Code:
crontab -e 1 20 * * 0 ./scripts/stopdb.sh
If i need a script to be schedule every Sunday 0120(24hrs) to kick off
 
Old 05-23-2004, 01:25 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
no.

Run
Code:
crontab -e
and it should spawn an editor where you can write a line
Code:
20 1 * * 0 /absolute/path/to/scripts/stopdb.sh
to a crontab-file. If this is not an user-process, but a system one, easiest way
to archive the same is to copy/symlink that script to /etc/cron.weekly/ .
 
  


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
crontab question kaplan71 Linux - General 4 07-18-2005 05:04 PM
Crontab question stefaandk Linux - Newbie 1 06-21-2005 08:31 AM
crontab question linuxtesting2 Linux - General 5 09-21-2004 05:54 PM
Crontab Question linear Linux - Software 4 01-11-2003 03:42 AM
Crontab Question? f117bomb Linux - General 5 02-09-2002 08:28 PM


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