From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a33ec7badc330d9e X-Google-Attributes: gid103376,public From: Samuel Tardieu Subject: Re: Ada Equivalent of "system()" in C? Date: 1996/04/17 Message-ID: #1/1 X-Deja-AN: 148002823 sender: tardieu@gargantua.enst.fr references: to: emery@grebyn.com (David Emery) content-type: text/plain; charset=iso-8859-1 organization: TELECOM Paris mime-version: 1.0 newsgroups: comp.lang.ada Date: 1996-04-17T00:00:00+00:00 List-Id: >>>>> "David" == David Emery writes: David> In other words, this takes a single string parameter, the David> command to execute, and returns an int value if the command was David> succesfully started. Note that the return value is NOT the David> return value of the command, but rather of the fork() that is David> used to set up execution of the command. I think you're wrong; if I remember well, the return value of system() is a value composed of the exit status of the shell command and the result of wait() (which is used to wait for child termination), whith a special case of -127 when the command couldn't be launched due to the lack of /bin/sh. Sam -- "La cervelle des petits enfants, ca doit avoir comme un petit gout de noisette" Charles Baudelaire