LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 07: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, 07:49 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

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



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 02:54 PM
Help me... Linux Server.. With Plesk.. Cron Tab 00tbone00 Linux - General 1 07-15-2006 01:16 AM
cron tab thefedexguy SUSE / openSUSE 4 07-06-2006 11:03 AM
FC 4. Modify ALT+TAB behaviour to CTRL+TAB xtracto Linux - Software 1 09-22-2005 02:06 PM
creating a cron(tab) scheduled thing student04 Linux - Software 5 12-26-2004 09:18 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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