Sleep function not working through Command line execution

  • Hi,

    I have a script which waits for a file to be created. Once the file is created, the script has to wait for 10 minutes. I use sleep(600000) in VB.NET Script. It works fine through GUI; waits for 10 minutes, but does not wait when I execute the same through command prompt or through sqlserver agent.

    I also tried out Windows API call but still it shows the same behaviour

    Any help?

     

    Thanks,

    Srividya

  • sounds like you're running a process to create a file to work on.  I's suggest have that process create a second file after the first is complete, then set your script to wait for the second file to be created then do its thing.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply