Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Timeout command

$
0
0

Hi,

      I have a script running on windows 2008 r2 to wait for 1 hour for an external file before this script can proceed. However, the script just proceed without going to sleep.

      This is the script that I have:

{
echo Program Start time: > D:\Reporting\Log\Mktg\weekly\Program_log.log
time /t >> D:\Reporting\Log\Mktg\weekly\Program_log.log

echo Sleep for 60 minutes....zzzz >> D:\Reporting\Log\Mktg\weekly\Program_log.log
timeout 3600 /nobreak

echo Program wake up time >> D:\Reporting\Log\Mktg\weekly\Program_log.log
time /t >> D:\Reporting\Log\Mktg\weekly\Program_log.log
}

This is the log generated:

{
Program Start time:
04:21 PM
Sleep for 60 minutes....zzzz
Program wake up time
04:21 PM
}

Please advise where is the problematic area.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>