Sponsored Content
Full Discussion: Day_of_the_week
Top Forums UNIX for Dummies Questions & Answers Day_of_the_week Post 302529102 by ctsgnb on Wednesday 8th of June 2011 01:37:52 PM
Old 06-08-2011
If you run it in control-M, you should be able to run it in the desired time frame, without of taking care of the start time inside the script

You could just add at the beginning of your script :

Code:
[[ -f /tmp/flag/MAINTENANCE ]] && exit 1

And before beginning your maintenance :

Code:
touch /tmp/flag/MAINTENANCE

and remove that flag at the end of your maintenance

Otherwise, schedule it in Control-M and before starting your maintenance, freeze it / unschedule it temporary until you get finished with your maintenance.

I don't know Control-M but i am almost 100% sure such kind of scheduler has some option or other ways for calendar based schedule or time frame windows definition/exclusion, that would make possible to set up such a schedule constraints in one way or another.

I think you should investigate on Control-M possibilities at first since those sort of tools have been design to achieve exactly this kind of task.

Last edited by ctsgnb; 06-08-2011 at 02:56 PM..
 
mlmmj-maintd(1) 					      General Commands Manual						   mlmmj-maintd(1)

NAME
mlmmj-maintd - maintenance for mlmmj maintained lists SYNOPSIS
mlmmj-maintd [-F] [-d | -L] /path/to/dir -d: Full path to directory with lists -L: Full path to list directory -F: Don't fork, performing one maintenance run only. DESCRIPTION
This is the program doing the maintenance for an mlmmj based mailing list. It will unsubscribe people who have bounced for long enough, send out bounce probes, resend mails that couldn't be delivered to relayhost, clean out stale requests for e.g. subscription, resend list mails and clean up leftover files etc. If a directory containing several lists exists, the -d can be used to specify this, making mlmmj-maintd perform a maintenance run in every listdir below the specified one. Only either -d or -L can be specified at the same time. It will run as a daemon, unless the -F switch is specified, in which case it just runs once. The -F option should be used when one wants to avoid running another daemon, and use e.g. cron to control it instead. In case cron is used, mlmmj-maintd should be run every 2 hours or so. An example crontab entry: 0 */2 * * * /usr/bin/mlmmj-maintd -F -L /path/to/list AUTHORS
This manual page was written by the following persons: Soren Boll Overgaard <boll@debian.org> (based on html2man output) Mads Martin Jorgensen <mmj@mmj.dk> mlmmj-maintd September 2004 mlmmj-maintd(1)
All times are GMT -4. The time now is 06:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy