Sponsored Content
Top Forums Shell Programming and Scripting Don't want to invoke job on holiday! Post 302100627 by mpang_ on Thursday 21st of December 2006 03:43:37 AM
Old 12-21-2006
Don't want to invoke job on holiday!

Hey all,


I have a question about cron job, I want to invoke a program to perform some operations
on database, however, this operation should only be invoked working day (weekday + not holiday)
. Scheduling a job on weekday is easy but how about holiday?

Thanks in advance!
 

6 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

Happy Thanksgiving Holiday!

Happy Thanksgiving holiday, everyone! Let's leave the computer alone, forget the Unix/Linux for a while, and enjoy your turkey and Foot~~~~~~~~~~~~~~~~~~~~~~ball~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (1 Reply)
Discussion started by: HOUSCOUS
1 Replies

2. Shell Programming and Scripting

holiday

hey all, I have set up a cron job which would be invoked at 1:00 am everyday. However, there is really no need to invoke such job if it's a public holiday so I am wondering if anyone have any idea on how to approach this? Thanks in advance! (2 Replies)
Discussion started by: mpang_
2 Replies

3. What is on Your Mind?

Discussing Holiday Season Greetings with jlliagre

Hmm, didn't you press that "Submit new thread" button too early ? ;) Reference this post: https://www.unix.com/whats-your-mind/124692-seasons-greetings-happy-holidays-unix-linux-forums.html (15 Replies)
Discussion started by: jlliagre
15 Replies

4. UNIX for Dummies Questions & Answers

Run scripts through AutoSys depending on holiday

Hi all, I am new to autosys. Can anyone help me in writing autosys job for the below script? Requirement is : 1.Every day it should run this script at particular time except on holidays. 2.The day after holiday some other script should be running. Thanks in advance. #!/bin/ksh #set... (0 Replies)
Discussion started by: raghuramyenni
0 Replies

5. What is on Your Mind?

Are we having sat-sun holiday for unix forum?

Are we having sat-sun holiday for unix forum? I am just thinking there are no new things to explore on sat-sun. It looks like holiday for this site also....:D (1 Reply)
Discussion started by: pamu
1 Replies

6. What is on Your Mind?

Holiday Thoughts for the End of 2018

Happy Holidays. Here are my randoms thought at the end of 2018 in no particular order. You Are Truly Blessed IT people are lucky. We get to use our brains extensively to solve complex and challenging computer-technology related problems. This is very good for our brains. Programming,... (2 Replies)
Discussion started by: Neo
2 Replies
CRON(8) 						      System Manager's Manual							   CRON(8)

NAME
cron - clock daemon SYNOPSIS
auth/cron [-c] DESCRIPTION
Cron executes commands at specified dates and times according to instructions in the files /cron/user/cron. It runs only on an authentica- tion server. Option -c causes cron to create /cron/user and /cron/user/cron for the current user; it can be run from any Plan 9 machine. Blank lines and lines beginning with # in these files are ignored. Entries are lines with fields minute hour day month weekday host command Command is a string, which may contain spaces, that is passed to an rc(1) running on host for execution. The first five fields are integer patterns for minute 0-59 hour 0-23 day of month 1-31 month of year 1-12 day of week 0-6; 0=Sunday The syntax for these patterns is time : '*' | range range : number | number '-' number | range ',' range Each number must be in the appropriate range. Hyphens specify inclusive ranges of valid times; commas specify lists of valid time ranges. To run the job, cron calls host and authenticates remote execution, equivalent to running rx host command (see con(1)). The user's profile is run with $service set to rx. Cron is not a reliable service. It skips commands if it cannot reach host within two minutes, or if the cron daemon is not running at the appropriate time. EXAMPLES
Here is the job that mails system news. % cat /cron/upas/cron # send system news 15 8-17, 21 *** helix /mail/lib/mailnews % SOURCE
/sys/src/cmd/auth/cron.c SEE ALSO
con(1), rc(1) CRON(8)
All times are GMT -4. The time now is 03:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy