![]() |
|
|
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 |
| cron ? automating a script | hassanj | UNIX for Dummies Questions & Answers | 8 | 12-22-2007 09:29 AM |
| How to compare the dates in shell script | vaji | Shell Programming and Scripting | 9 | 02-28-2007 12:34 AM |
| Automating Logform Command in a script | TheDoc | Shell Programming and Scripting | 2 | 07-03-2006 09:14 AM |
| computing go/no-go dates in script | thumper | Shell Programming and Scripting | 3 | 03-23-2006 11:45 AM |
| automating sftp script | Rajeshsu | Shell Programming and Scripting | 1 | 07-27-2005 05:06 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Help in automating dates in ksh script
I need to run a command at the end of a backup job and this command will produce a report of what my backup jobs have collected in the previous day. The real problem is that this binary works with absolute dates only, so I should have to modify the script every single time I need it to work. It assumes that start date is given as -s mm/dd/yyyy and end date is given as -e mm/dd/yyyy. It will be enough to me that end date is equal to "today" and start date is equal to something like "today - n days". Of course I can pass a variable to the binary, but I don't know how to build them. I would like to obtain something I can forget about
Thanks Luca |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|