Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watdaisy!dvadura From: dvadura@watdaisy.UUCP Newsgroups: comp.sys.ibm.pc Subject: Exit codes, help... Message-ID: <8137@watdaisy.UUCP> Date: Fri, 13-Feb-87 21:24:02 EST Article-I.D.: watdaisy.8137 Posted: Fri Feb 13 21:24:02 1987 Date-Received: Sat, 14-Feb-87 02:38:26 EST Reply-To: dvadura@watdaisy.UUCP (Dennis Vadura) Distribution: world Organization: Computer Science Dept., University of Waterloo Lines: 28 Hi, I have a small problem and would appreciate it very much if someone has a solution. When using Microsoft C 4.0 the spawn... functions return nice exit codes from the tasks that you spawn. The problem lies when you run command.com with /C option. Is there some way to get command.com to return a proper exit code based on the exit code of the command it executed. This may not be easy since the command it executed can either be internal or external, and I'm not sure that the internal commands generate exit codes. On a similar vain is there a way to get the exit code as a result of executing the system() call from C. Any words of wisdom on this topic would be muchly appreciated. I'm sorry if this was talked about earlier, but I haven't seen the discussion before. I will post a summary of whatever responses I do receive. -thanks dennis -------------------------------------------------------------------------------- Dennis Vadura, Computer Science Dept., University of Waterloo UUCP: {ihnp4|allegra|utzoo|utcsri}!watmath!watdaisy!dvadura ================================================================================ -- -------------------------------------------------------------------------------- Dennis Vadura, Computer Science Dept., University of Waterloo UUCP: {ihnp4|allegra|utzoo|utcsri}!watmath!watdaisy!dvadura ================================================================================