LinuxQuestions.org
Visit Jeremy's Blog.
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 04-23-2007, 06:59 AM   #1
gubak
Member
 
Registered: Jul 2004
Posts: 332

Rep: Reputation: 30
Scheduled tasks


Hi!
I use CentOS 4.4.
I want to run a program (it doesn't matter what kind of program)on my linux server every sunday at 9:00 AM .
How can I do that?
Are there any services on linux, like Scheduled Tasks in windows?

Thanks
 
Old 04-23-2007, 07:08 AM   #2
hubbruch
LQ Newbie
 
Registered: Apr 2007
Location: Europe
Distribution: Slackware
Posts: 14

Rep: Reputation: 0
Hi, try

Code:
$ man cron
 
Old 04-24-2007, 01:17 AM   #3
gubak
Member
 
Registered: Jul 2004
Posts: 332

Original Poster
Rep: Reputation: 30
I've tried to set cron, but it doesn't work!
crond is running. If I type
Code:
crontab -l
the result is:
Code:
20 * * * * service vsftpd start
It means that ftp daemon could start every hours, but this command never execute.
Do you have any idea why this command doesn't execute?

Thanks
 
Old 04-24-2007, 03:34 AM   #4
hubbruch
LQ Newbie
 
Registered: Apr 2007
Location: Europe
Distribution: Slackware
Posts: 14

Rep: Reputation: 0
Quote:
Originally Posted by gubak
Code:
20 * * * * service vsftpd start
It means that ftp daemon could start every hours, but this command never execute.
Do you have any idea why this command doesn't execute?
That will start every 20 minutes after the hour. If you want to run something every Sunday 9AM then try

Code:
0 9 * * sun /path/to/vsftpdscript

Your example won't execute (my guess) because cron wants a full path to whatever it's supposed to run.

Last edited by hubbruch; 04-24-2007 at 03:37 AM.
 
  


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
Can't delete scheduled tasks from KlamAV airman99 Linux - Desktop 0 01-16-2007 01:39 PM
Cron - doesn't seem to run scheduled tasks robintw Linux - General 11 11-25-2005 02:53 AM
scheduled tasks on a web server juanbobo Programming 3 05-16-2005 09:08 AM
Scheduled tasks? onionkn1ght Linux - Software 3 01-11-2005 11:20 PM
Scheduled tasks... beserier Linux - General 1 01-24-2003 09:55 AM

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

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