If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Ksh Script needed to run for specific dates

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-10-04, 09:15
newbie2004 newbie2004 is offline
Registered User
 
Join Date: Apr 2004
Posts: 113
Ksh Script needed to run for specific dates

Hello,

Please look at the attached ksh script and I need it to run for a specific week. It is now set up to run for the week prior.
Attached Files
File Type: txt weekly_txt.txt (38.0 KB, 111 views)
Reply With Quote
  #2 (permalink)  
Old 06-15-04, 13:11
newbie2004 newbie2004 is offline
Registered User
 
Join Date: Apr 2004
Posts: 113
Bump Bump Bump
Reply With Quote
  #3 (permalink)  
Old 06-15-04, 13:47
saccskiz saccskiz is offline
Registered User
 
Join Date: Feb 2004
Posts: 143
It needs to run for a specific week. It is now set up to run for the week prior.
But probably you will get an answer weeks after !!!!!!!!!!!!
(just kidding....). I wish I knew the answer to your question.
Reply With Quote
  #4 (permalink)  
Old 06-15-04, 16:23
LKBrwn_DBA LKBrwn_DBA is offline
Registered User
 
Join Date: Jun 2003
Location: West Palm Beach, FL
Posts: 2,456
Did you read this in the script?

Quote:
usage: weekly.ksh {-s start_date_spec} {-e end_date} {-w week_spec}
{-pW}

options:

-w The date of any day within the week to be processed in
the form MM/DD/YYYY. Takes predence over -s and -e.

-W Prompt for a date of any day within the week to be processed.

-s The start date spec may be either an explicit date in
the form of MM/DD/YYYY or a negative integer to indicate
the number of days before the end date, i.e. -14 would
indicate 14 days before the end date. The default is
the first day of last week (sunday).

-e The end date may be given in the form of MM/DD/YYYY. The
default is the last day of last week (saturday).

-p PICK from a list of procedures run.
Maybe all you have to do is type:

weekly.ksh -W

__________________
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On