Solved

Cron all day except weekends

Posted on 2006-07-18
4
535 Views
Last Modified: 2006-11-18
Hi-
I need to run a cron job every minute between 11AM and 7PM Monday through Friday.

What would the correct format be?

Centos 4
Plesk

thanks
0
Comment
Question by:livegirllove
  • 3
4 Comments
 
LVL 1

Expert Comment

by:antoxa
ID: 17128366
0-59 11-7 * * 1-5 /path/to/your/command

WBR
0
 
LVL 1

Accepted Solution

by:
antoxa earned 500 total points
ID: 17128373
sorry

0-59 11-19 * * 1-5 /path/to/your/command

WBR
0
 
LVL 1

Author Comment

by:livegirllove
ID: 17132400
thanks
just wondering why you used 0-59 instead of *?  isn't it the same thing?
0
 
LVL 1

Expert Comment

by:antoxa
ID: 17135806
yes, where is could be used * or 0-59 or in vixie-cron */1
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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 demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

860 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