View Single Post
Old 10-28-2008, 09:17 PM  
WiredGuy
Pounding Googlebot
 
Industry Role:
Join Date: Aug 2002
Location: Canada
Posts: 34,504
Quote:
Originally Posted by GrouchyAdmin View Post
That's the problem. You're trying to trap exits, not crashes. I'll take a look, and see what I can do for you. I'm still more of a PHP/Bourne/Perl person than anything, though.

Half the reason it hangs is because a lot of that software grabs the windows equivalent of your "terminal", and when you disconnect, it's not "nohupped". Why is the bastard process attaching to the console, anyhow?!
You're a perl lover too huh ;)

Yeah, I've tried to get the equivalent of $! on linux which I'm pretty sure isn't going to happen. At this point I'm using "start 'unique identifier' programname.exe" and going to write a win32 perl script to extract the PID of unique identifier. Its really BS, but it seems like that'll work.

I'm not sure how to get around the hanging launches though. Ironically enough, its hanging on the "start programname.exe" from above. So fixes the PID problem, and creates another...
WG
__________________
I play with Google.
WiredGuy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote