Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!linus!philabs!cmcl2!seismo!brl-tgr!tgr!ron@brl From: ron@brl (Ron Natalie) Newsgroups: net.unix Subject: Re: Setting variables for a running process Message-ID: <10895@brl-tgr.ARPA> Date: Tue, 21-May-85 17:43:26 EDT Article-I.D.: brl-tgr.10895 Posted: Tue May 21 17:43:26 1985 Date-Received: Fri, 24-May-85 07:11:09 EDT Sender: news@brl-tgr.ARPA Lines: 21 No, it's not possible to change environment variables from "lower forks" because each process gets it's own copy of the environment. Changing the environment of one process does not affect any others. Same story for things like the current directory. Forks get an identical environment because fork just copies process. The exec call to the kernel tells it exactly what you want to environment of the execed process to be. The three things I do are: TERM=`process` Set TERM using what is the output process and the temporary environment setting such as TERM=vt52 vi If send used the shell to execute the editor, this would work, but alas it uses pexec or something else instead. I've refered the problem to the send maintainers here. -Ron