HP3000-L Archives

June 2008, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Bruce Collins <[log in to unmask]>
Reply To:
Bruce Collins <[log in to unmask]>
Date:
Wed, 25 Jun 2008 13:02:17 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (91 lines)
Hi Daniel,

By return code do you mean what is set when you do something like an "exit 
0;" or "exit 15;"

I don't know if there is anything in CREATEPROCESS (or for that matter in 
MPE) that will check that. If that is what you want to check, you will 
probably have to do something like set an environment variable and check the 
environment variable in the father process when the son is complete.

It's been a while since I've done any programming involving CREATEPROCESS.

Hope this helps,

Bruce




----- Original Message ----- 
From: "Daniel Griffin" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Wednesday, June 25, 2008 11:53 AM
Subject: Re: [HP3000-L] Return Codes from CREATEPROCESS


>I saw createstatus, but I dont think its the right thing. Say I use 
>CREATEPROCESS to run a C program that farts around for a few minutes then 
>returns either a 0 or a 15, how do I determine which return code is 
>returned? I originally thought I could get this info from PROCINFO or 
>GETPROCINFO, but havent found anything.
>
> Most of this doc is older than I am, so I am very excited to have some 
> knowledgeable people to answer questions.
>
> Thanks,
> Dan
>
>
> Craig Lalley wrote:
>> --- On Wed, 6/25/08, Daniel Griffin <[log in to unmask]> wrote:
>>
>> I just joined today and I have a question. I am attempting to use 
>> CREATEPROCESS to run other programs. How do I get return codes from 
>> whatever CREATEPROCESS runs(i.e. a C program)? I have looked at 
>> GETPROCINFO and PROCINFO and neither have been very useful. Can anyone 
>> point me in the right direction or tell me if this is even possible? Do 
>> return codes have the same meaning on MPE as they do on 
>> Linux/Windows/Solaris?
>>
>>
>> Hey Daniel,
>>
>> Let me be the first to welcome you to this old bunch of techies/propeller 
>> heads.
>>
>> Sometimes we even discuss technical  issues, but I must warn you... most 
>> of us have 20+ years experience, so we have solved most technical issues. 
>> Now we spend most our time bashing each other over global warming etc.... 
>> In the many years I have been here, I have yet to see anyone change their 
>> position.
>>
>> Now on to your question...  I downloaded the Intrinisics manual from here
>> http://docs.hp.com/en/32650-90905/32650-90905.pdf
>>
>> On page 83 there is the documentation for the CREATEPROCESS intrinsic, it 
>> says to check the createstatus parameter.
>>
>> The manuals are actually very good, and if you look I am sure you can 
>> find examples listed.
>>
>> Good luck, keep the questions coming, it relives the boredom, and slows 
>> the off topic discussions.
>>
>> -Craig
>>
>>
>>
>>
>> * To join/leave the list, search archives, change list settings, *
>> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>>
>>
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
> 

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2