Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!lavaca.uh.edu!uhnix1!sugar!peter From: peter@sugar.hackercorp.com (Peter da Silva) Newsgroups: comp.sys.amiga.tech Subject: Re: SKsh weirdness Message-ID: <5147@sugar.hackercorp.com> Date: 14 Feb 90 14:30:08 GMT References: <02152.AA02152@thekeep.UUCP> <13920046@hpfelg.HP.COM> Reply-To: peter@sugar.hackercorp.com (Peter da Silva) Organization: Sugar Land Unix - Houston Lines: 43 In article <13920046@hpfelg.HP.COM> koren@hpfelg.HP.COM (Steve Koren) writes: > Brief note to Commodore, if they're listening: > I think that we need something like this: > result_code = ExecProgram( char *command_line, > struct FileHandle *input_fh, > struct FileHandle *output_fh, > int stack, > int priority, > int background_flag, > whatever_else_is_needed > ); [yes, I know "give" isn't the operative word... but while inventing stuff that's not going to happen why not do it right?] No, don't give them a background flag. that will give them an excuse to keep the kludge of running the program in the current process. Make it: token = Spawn( int sigbit, char *program, char *cmdline, BPTR infh, BPTR outfh, BPTR currentdir, ULONG stack, int prio); Wait(1< while we're discussing wish lists, can I have a fork() command (the > real thing, not the Lattice forkv() stuff) Not under AmigaOS you can't. -- _--_|\ Peter da Silva . / \ \_.--._/ I haven't lost my mind, it's backed up on tape somewhere! v "Have you hugged your wolf today?" `-_-'