Solved

Time scheduling in solaris Crontab

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Configuring EMC Clariion on Solaris 10 5 68
IBM flash storage 840 15 51
FTP on FreeBSD server 2 93
Linux: disable vim auto-comment 7 64
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now