Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Cron all day except weekends

Posted on 2006-07-18
4
Medium Priority
?
554 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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…
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.
Suggested Courses

618 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