The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
crontab every 2 minutes, 24 hours and once a week Bobafart UNIX for Dummies Questions & Answers 6 05-17-2007 10:08 AM
Crontab Job - Schedule prashanth_gs SUN Solaris 7 12-04-2006 05:03 AM
Convert minutes to hours, minutes, seconds Vozx Shell Programming and Scripting 1 12-09-2005 01:24 AM
How to schedule a job ashvik UNIX for Advanced & Expert Users 5 09-22-2005 07:53 AM
schedule dial-out different ISP's Hansaplast UNIX for Dummies Questions & Answers 2 01-15-2002 03:23 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-14-2007
prashanth_gs prashanth_gs is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 25
Schedule to run every 3 minutes - CRONTAB

Hello all,

I want to run a script every 3 minutes in os level and to send mail.

I scheduled in crontab as

3 * * * * /mnt1/monitorscripts/testdbstart.sh

I got mail every one hour and I confirmed that the script is running every 1 hour which doesn't meet my requirment.

Where I am wrong? Did I scheduled in crontab properly?

Please advice

OS: sun solaris 5.2

Thanks and Regards,
Prashanth
  #2 (permalink)  
Old 02-14-2007
mr_manny mr_manny is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 144
Your example is for 3mins after EVERY HOUR...

Do a man on crontab for more info:

crontab Entry Format
A crontab file consists of lines of six fields each. The
fields are separated by spaces or tabs. The first five are
integer patterns that specify the following:

minute (0-59),
hour (0-23),
day of the month (1-31),
month of the year (1-12),
day of the week (0-6 with 0=Sunday).


3,6,9,12,15,youGETtheIDEA * * * * /mnt1/monitorscripts/testdbstart.sh
  #3 (permalink)  
Old 02-15-2007
momin momin is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 5
thats right!

Its every 3rd minute that you need to mention... rest is good:


3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57,60 * * * * /mnt1/monitorscripts/testdbstart.sh

did that work!

momin
  #4 (permalink)  
Old 02-16-2007
andryk's Avatar
andryk andryk is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2003
Posts: 448
if You were on linux it would be
Code:
*/3 * * * * cmd
  #5 (permalink)  
Old 02-20-2007
prashanth_gs prashanth_gs is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 25
Ok..Thanks for your information and time.

Thanks and Regards,
Prashanth
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0