http://community.freepascal.org:10000/docs-html/rtl/unix/assignstream.html
A few questions about AssignStream: 1. I can't seem to figure out a way to see if the program I ran actually executed. For example, if I pass in something bogus for the Prog parameter (some filename that doesn't even exist), I still get a PID back. It's just that the PID is in a defunct (zombie) state. I could read the status file in /proc/ for that PID, but that seems rather a waste to do with each program I execute via AssignStream. 2. Is there a way for me to get the exit code of a program executed with AssignStream? Thanks, Seth -- This email is fiction. Any resemblance to actual events or persons living or dead is purely coincidental. Seth Grover sethdgrover[at]gmail[dot]com _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal