![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| ksh scripting help | praveenbvarrier | Shell Programming and Scripting | 1 | 04-15-2008 10:19 AM |
| sql scripting help | sam786 | Shell Programming and Scripting | 3 | 12-10-2007 12:31 PM |
| difference between AIX shell scripting and Unix shell scripting. | haroonec | Shell Programming and Scripting | 2 | 04-12-2006 08:12 AM |
| scripting guru's pls help me with scripting on AIX | thatiprashant | Shell Programming and Scripting | 1 | 01-20-2006 07:58 PM |
| Scripting? | woofie | What's on Your Mind? | 1 | 03-09-2005 07:03 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
New to scripting, Need help
We have database name Progress.
We will restore prod back files to UserServer on Sunday. Except all other days We will keep apply AI(trsaction log files kind in db2) files of that day. I have appy the log files in SEQUENTIAL order by timestamp which is part of file name. It's not really applying log siles in sequential order. #set -x DATE=`date "+%y%m%d%H%M%S"` ########## MAIN FUNCTION myfunc () { ls -ltr /archive/testdb/|grep progress|cut -c67-78>unc while read ai do echo $ai is getting Verifified by If clause #if [ "${ai}" -le "${DATE}" ]; then if [ "${ai}" -le 080214121500 ]; then echo $ai "<" 080214121500 #echo $ai "<" $DATE $DLC/bin/rfutil dbname -C roll forward -a /archive/testdb/ai.$ai else echo "" echo "Can't apply Log File $ai is >= 080214121500" fi done < unc rm unc } ################ MAIN How can apply the log is sequntial order based on the filenames??? Any help wold be appriciated Last edited by newbie22102; 02-25-2008 at 11:08 AM.. |
|
||||
|
Can some one help me out
|
| Sponsored Links | ||
|
|