Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!cheshire.columbia.edu!francus From: francus@cheshire.columbia.edu (Yoseff Francus) Newsgroups: comp.unix.wizards Subject: Re: Adding to Environment Pointers Message-ID: <4700@columbia.UUCP> Date: Wed, 17-Jun-87 11:20:56 EDT Article-I.D.: columbia.4700 Posted: Wed Jun 17 11:20:56 1987 Date-Received: Sun, 21-Jun-87 09:42:32 EDT References: <7875@brl-adm.ARPA> Sender: nobody@columbia.UUCP Reply-To: francus@cheshire.columbia.edu.UUCP (Yoseff Francus) Organization: Columbia University CS Department Lines: 26 In article <7875@brl-adm.ARPA> drears@ARDEC.arpa (FSAC) writes: > > We are running Ultrik 2.0 on a vax 8600. Is there a way to >change environmental pointers (PATH,PS1,HOME,etc) in a C program? >After I change the environmental pointers and add a few, I would >like to exec a different program while keeping the new values for >the pointers. ANy suggestions? > >Dennis Dennis, What about the setenv command. If I'm not mistaken when you do an exec the new process retains the environment of the old one. If you look at login.c thats what happens every time the login command is run. Hope this is what you're lloking for. ****************************************************************** yf In Xanadu did Kubla Khan a stately pleasure dome decree But only if the NFL to a franchise would agree. ****************************************************************** yf In Xanadu did Kubla Khan a stately pleasure dome decree But only if the NFL to a franchise would agree.