🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #13674

Re: Execute -- What does it always return -1?

#13674
From: Doug Walker
Date: Tue, 13 Feb 1990 03:31
18 lines
1331 bytes
In article <541@qusunb.queensu.CA> cmichael@qucis.queensu.CA (Ian Carmichael) writes:
>Does Execute always return -1?  In the following code, caller always
>prints "Success = -1", regardless of the value of N in callee.c, or even
>if callee does not exist.  Why?  What is "the right way" to get the 
>return code from Execute?

You ARE getting the return code from Execute.  What you WANT is the return
code from the program you executed.  The -1 is saying 'yep, I launched the
process for you successfully.'  (-1 being DOS_TRUE, 0xffffffff).  

Anybody know how to get the return code of the program you Execute()ed?

  *****
=*|_o_o|\\=====Doug Walker, Software Distiller=======================
 *|. o.| ||
  | o  |//     "I try to make everyone's day a little more surreal."
  ======               - Calvin
usenet: ...mcnc!rti!sas!walker   plink: dwalker  bix: djwalker 
Technical Details
Message-ID: <1547@sas.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!mephisto!mcnc!rti!sas!walker
References: <541@qusunb.queensu.CA>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!mephisto!mcnc!rti!sas!walker
From: walker@sas.UUCP (Doug Walker)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Execute -- What does it always return -1?
Keywords: amigados dos execute
Message-ID: <1547@sas.UUCP>
Date: 13 Feb 90 03:31:34 GMT
References: <541@qusunb.queensu.CA>
Reply-To: walker@sas.UUCP (Doug Walker)
Organization: SAS Institute Inc, Cary NC
Lines: 18