I am in a situation where I use Run Program() to send files to an FTP/MTP site. By and large everything works great, but sometimes there's a kink in the connection and the program lags indefinitely. I have recreated this problem from the command line and it's basically a lost connection type event. But I need to Ctrl-break out of CMD to stop it.
In JMP I want to put in a timeout to reduce the risks, however I haven't been able to get one to work well. Currently I build the timeout into the While(!(x << isReadEof), Wait(0.1)) command such that x is set to 0, breaking the Run Program. But when I do this JMP will often freeze for a short or longer time to fix (or while something else is fixed) background stuff that had been going on.
Is there a way to force close Run Program() as well as the process it invoked w/o risk to freezing JMP?
Thanks!