LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 11:25 AM   #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, 12: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



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

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

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