Been a while since I've used the DOS compiler full time. I'm needing
to make a Band-Aid application to call a program and check its return
value. 0= Good, anything else= error. What happens is sometimes when 0
is returned it is after a Stack Overflow, so really there was an error condition.
So, what I need to do is if <> 0 then END my app with the same return value so the calling
program knows there was an error. If it returns 0 then I need to check a log file to see if
it did what it was supposed to do. If it did then return 0, if not then return <> 0 so the
calling app knows there was really an error. PB DOS has a way of returning completion codes with
END, but how do I call an app and get the return code of it??? Shell and checking Err values doesn't
appear to support this. Is ther a command I'm forgetting, or is there not a way to do this?
------------------
If you aim at nothing...you will hit it.
to make a Band-Aid application to call a program and check its return
value. 0= Good, anything else= error. What happens is sometimes when 0
is returned it is after a Stack Overflow, so really there was an error condition.
So, what I need to do is if <> 0 then END my app with the same return value so the calling
program knows there was an error. If it returns 0 then I need to check a log file to see if
it did what it was supposed to do. If it did then return 0, if not then return <> 0 so the
calling app knows there was really an error. PB DOS has a way of returning completion codes with
END, but how do I call an app and get the return code of it??? Shell and checking Err values doesn't
appear to support this. Is ther a command I'm forgetting, or is there not a way to do this?
------------------
If you aim at nothing...you will hit it.
Comment