Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!csli!gandalf From: gandalf@csli.STANFORD.EDU (Juergen Wagner) Newsgroups: comp.unix.questions Subject: Re: changing cwd after process exec Message-ID: <3676@csli.STANFORD.EDU> Date: 28 Apr 88 22:35:13 GMT References: <13144@brl-adm.ARPA> <7787@brl-smoke.ARPA> Reply-To: gandalf@csli.stanford.edu (Juergen Wagner) Organization: Center for the Study of Language and Information, Stanford U. Lines: 10 The only solution to this would be passing some value back to the parent (who should expect this). In general, there is no way to modify the parent's environment. I suggest to use either a return value (caught after wait'ing for the child's death), or a pipe (possibly named in the UNIX domain), or if a special monitorable action causes the cd inside the child, let the parent monitor these actions, too, and react in the same way. -- Juergen "Gandalf" Wagner, gandalf@csli.stanford.edu Center for the Study of Language and Information (CSLI), Stanford CA