Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > program hangs when external process crashes

Thread Tools

program hangs when external process crashes

Earl Eiland
Posts: n/a
I'm executing WinRK.exe in a loop using the following code:

for x in Files:
Command_String = 'C:\Program Files\WinRK\WinRK.exe -create ' +
os.path.join(InputDirectory, os.path.splitext(x)[0]) + ' -set
compression_method ppmz -setg include_paths none -add ' +
os.path.join(InputDirectory, x) + ' -apply -quit'
PROC = subprocess.Popen(Command_String)

Occasionally, WinRK crashes, and this program hangs at PROC.wait().
What can I do about this?

Earl Eiland

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
external program crashes when run through subprocess.popen on XP ckkart Python 4 11-27-2008 09:03 PM
process.start() program hangs Alexander Widera ASP .Net 6 05-31-2006 10:00 PM
Main Application Crashes during running a external process task RBCS Perl Misc 1 02-14-2006 03:38 PM
program hangs when external process crashes Earl Eiland Python 0 03-18-2005 10:15 PM
Clear hangs up - & hangs up - & hangs up Sue Bilstein NZ Computing 26 03-07-2004 01:33 AM