AWS Thinkbox Discussion Forums

Post Job Script - Implementing WAIT/SLEEP command

Hi,



I thought I would share a trick I found to implement a WAIT/SLEEP command in a Deadline Post Job vbScript file. (This was necessary because WScript.Sleep is not available in the Deadline vbscript engine.)



Set WshShell = CreateObject(“WScript.Shell”)

numSecondsToWait = 30

cmdSleep = “%COMSPEC% /c ping -n " & numSecondsToWait + 2 & " -w 1000 127.0.0.1>nul”

WshShell.Run cmdSleep, 0, TRUE





This isn’t going to be exact, but its a decent trick.



More Info

http://malektips.com/dos0017.html

Privacy | Site terms | Cookie preferences