Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

To run the script in window time

Status
Not open for further replies.

h3nd

Programmer
Jul 1, 2006
147
AU
Hi guys,

I would like to run my script between time 12.00-17.00

The script could be like this
Code:
while [[ "$(date +%H%M)" -ge "1200" ]] && [[ "$(date +%H%M)" -le "1700" ]]
do
     check directory dir
     for file in *20061017
     do
        if $file hasnt loaded
           load.ksh $file
           sleep 50
        fi
     done 
done

but I want validation, if file1 was loaded before.
ignore it,

any idea, thanks.
 
How can we tell you how to do that? We don't know what happens when a file is loaded... does it create another file that you can test for? If not, maybe modify load.ksh to create such a flag file, so that you know the file is loaded?

Annihilannic.
 
Well, actually the file just loaded to database,

I was thinking either create a list or create a flag file.

Thanks man anyway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top