windows 2008 task scheduled batch file runs forever

Posted by phill on Stack Overflow See other posts from Stack Overflow or by phill
Published on 2010-05-12T19:11:37Z Indexed on 2010/05/12 19:14 UTC
Read the original article Hit count: 582

I currently have the following batch running in windows 2008 task scheduler.

mysql --user=bobdb --password=letmein --force --named-commands --local-infile=1 --execute="insert into bobdb.attendees (name) values ('bob');insert into bobdb.attendees (name) values ('rick');" 

It executes nicely when I run it from a command prompt and it executes when I force it to run and it executes when it is scheduled to run.

My issue is when it does run, the task scheduler seems to keep it running until it hits a timeout. Is there a command to tell it when it is finished running in the batch file so it doesn't throw a timeout error?

thanks in advance

© Stack Overflow or respective owner

Related posts about Windows

Related posts about windows-server-2008