Solved

Time scheduling in solaris Crontab

Posted on 2006-06-30
1
4,268 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
nodeip 9 80
AIX    Volume group Auto ON/OFF question 2 102
Linux :how to provide sudo access to the user 13 97
dot directory in FreeBSD??? 4 80
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

777 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