The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help in automating dates in ksh script italia1971luca Shell Programming and Scripting 1 06-04-2008 07:29 AM
Event Cloud Computing - IBM Turning Data Centers Into ?Computing Cloud? iBot Virtualization and Cloud Computing 0 11-15-2007 08:30 PM
How to compare the dates in shell script vaji Shell Programming and Scripting 9 02-28-2007 12:34 AM
Trusted Computing kduffin Security 0 06-15-2006 04:07 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 03-22-2006
thumper thumper is offline VIP Member  
Supporter
  
 

Join Date: Feb 2005
Posts: 49
computing go/no-go dates in script

I am working on a bash script to backup selected servers and am trying to come up with a simpler solution to this problem:

Each server to be backed up has a config file that is read by the script, in the config file are the following values:
LEVEL0=12 #this is the day of the month on which level zero backups are performed.
INTERVAL=3: #In this case every 3 days before or after the LEVEL0 date an interval backup will be performed.

The LEVEL0 and INTERVAL values will be different for different servers.

I could just write a loop to compute if the current day is a day on which to perform an interval backup but it seems that there must be a simpler way to calculate this.

If anyone can point me in the right direction I would appreciate it very much.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:37 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0