[comp.os.os9] OSK enviorment variable passing

bwynkoop@shearson.com (Brett Wynkoop) (06/07/91)

Greeting-
     Now that I have news fixed at my new (work) site I am back to
being able to work on my OS9 news software.  Lousing my old news feed
put a damper on things.  I havew moved all my development over to OSK,
so that the code will in the end run under OSk or OS9.  I have run
into a problem with passing enviorment variables to a program that is
chained from a parrent other than the shell.  It will make my life
very easy if I can get the enviorment passed to the second program
(the one chained to).  Can any one out there give me a clue?


-Brett


uucp........uunet!slcpi!bwynkoop (office)
uucp........uunet!columbia!woof!wa3yre!wynkoop (OS9 at home)

blarson@blars (06/08/91)

In article <1991Jun7.164645.1189@shearson.com> bwynkoop@shearson.com (Brett Wynkoop) writes:
>     Now that I have news fixed at my new (work) site I am back to
>being able to work on my OS9 news software.

I already have C news and rn working on os9/68k 2.3, (the 2.2 C
compiler had nasty bugs, and 2.4 isn't yet available for my system)
and the TOP people have notes, so you may not need to do your own.  My
port could definatly use some polishing and documentation, but since
it doesn't look like I'll get to that in the near future I may release
it as-is.  A couple of people have expressed interest, maybe a mailing
list should be formed if other people are interested in finishing it.

> It will make my life
>very easy if I can get the enviorment passed to the second program
>(the one chained to).  Can any one out there give me a clue?

Pass the value of the external variable environ to the enviornment
pointer argument of os9exec().  Don't directly call os9fork[c]() or
os9chain[c]().  If you want to build up an enviornment to pass, there
are routines for that in blarslib.  (available on smilodon)

-- 
blarson@usc.edu
		C news and rn for os9/68k!
-- 
Bob Larson (blars)	blarson@usc.edu			usc!blarson
	Hiding differences does not make them go away.
	Accepting differences makes them unimportant.