LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 11-15-2006, 08:44 AM   #1
framedrelay
LQ Newbie
 
Registered: Jun 2006
Posts: 7

Rep: Reputation: 0
help in cron tab


I have two programs running on my Linux machine,

1. its a kind of ping program
2. its for sending email.

Both are cron jobs. So, one runs every 15 mins, & the email program should work 3 times a day. So here its my cron tab,

15 * * * * * * /usr/psylvester/ping.sh
* */8 * * * * * /usr/psylvester/mail.sh

Second one, im dividing it by 8 (24/8 = 3 times a day). The problem is, it doesn't work. If i manually run the mail.sh script, i get the email, not via cron.

Reply will be much appreciated.

Regards,
Sylvester.
 
Old 11-15-2006, 08:49 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
you have far far too many *'s there!
Code:
*     *   *   *    *  command to be executed
-     -    -    -    -
|     |     |     |     |
|     |     |     |     +----- day of week (0 - 6) (Sunday=0)
|     |     |     +------- month (1 - 12)
|     |     +--------- day of month (1 - 31)
|     +----------- hour (0 - 23)
+------------- min (0 - 59)
 
  


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 tab, what do you use it for? Fritz_Monroe Linux - Newbie 12 09-28-2006 03:54 PM
Help me... Linux Server.. With Plesk.. Cron Tab 00tbone00 Linux - General 1 07-15-2006 02:16 AM
cron tab thefedexguy Suse/Novell 4 07-06-2006 12:03 PM
FC 4. Modify ALT+TAB behaviour to CTRL+TAB xtracto Linux - Software 1 09-22-2005 03:06 PM
creating a cron(tab) scheduled thing student04 Linux - Software 5 12-26-2004 10:18 PM


All times are GMT -5. The time now is 11:32 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration