![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 |
| Display Modes | Rate This Thread |
|
|