🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: SKsh weirdness

#13702
From: Peter da Silva
Date: Wed, 14 Feb 1990 14:30
43 lines
1966 bytes
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<<sigbit);
	result = Status(token);

If sigbit is -1, then I'm not going to wait on the program.

> 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 <peter@sugar.hackercorp.com>.
/      \
\_.--._/ I haven't lost my mind, it's backed up on tape somewhere!
      v  "Have you hugged your wolf today?" `-_-'
Technical Details
Message-ID: <5147@sugar.hackercorp.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!lavaca.uh.edu!uhnix1!sugar!peter
References: <02152.AA02152@thekeep.UUCP> <13920046@hpfelg.HP.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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