[net.micro.amiga] creating sub process

wecker@cookie.dec.com (DAVE TANSTAAFL WECKER) (09/01/86)

> ...  
> 	Along the same lines, I think it would be a good idea to include in
> the DOS library a function similar to the Execute() call, but:
>  
> 	(a) you can give it Output AND Input file handles
> 	(b) that has NOTHING to do with a CLI....
> 	(c) That gives the return value from the executed command.
>  
> ...
> 					-Matt


Here Here!! I spent an equivalent amount of time trying to write a MAKE for
my system (too cheap to buy it from Manx :-) and found that Execute() was
pretty useless, since you couldn't get back an exit status. What I wound up
doing was an fexecv() (which does seem to work on both C and "standard"
commands) and then doing a wait() (notice lower case) to get the returned
status. Without this, there was no way for the "make" to recognize that a
command had failed and merrily go on and link/compile dependant modules.

I really hate having to parse my own command lines (maybe Matt's shell will
take care of that for me (when I finally get a copy) ;-). For now it's
good enough but the function described above would be REAL useful.


dave	decwrl!cookie.dec.com!wecker