The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
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 08: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 04:06 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-04-2008
italia1971luca italia1971luca is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 1
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
  #2 (permalink)  
Old 06-04-2008
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,116
as always look at the date FAQ first.
Sponsored Links
Closed Thread

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 09:45 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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