Solved

Time scheduling in solaris Crontab

Posted on 2006-06-30
1
4,269 Views
Last Modified: 2013-12-21
I have schedule a job to run every 15 minutes of the hour in the crontab file in Solaris  but I would like to put a begin time of 8am and an end time of   6:00pm.

below is an example of the job i sheduled

0,15,30,45 * * * * su - oracle -c "/opt/bin/mon_users.sh" > /dev/null 2>&1

your answer much appreciated.

0
Comment
Question by:nhhgict
1 Comment
 
LVL 14

Accepted Solution

by:
chris_calabrese earned 50 total points
ID: 17018863
0,15,30,45 8-18 * * su - oracle -c "/opt/bin/mon_users.sh" > /dev/null 2>&1

The second field is the hour restriction. See 'man crontab' for more details.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
sudo logging 5 101
ftpcommand 2 67
Parsing a file using ksh 10 72
looking for unix program to search some keywords in side EAR WAR and JAR files 10 100
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question