home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.programmer
- Path: sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!smurf.sub.org!flatlin!bad
- From: bad@flatlin.ka.sub.org (Christoph Badura)
- Subject: Re: Beginner question about chdir()
- Organization: Guru Systems/Funware Department
- Date: Mon, 4 Jan 1993 11:44:13 GMT
- Message-ID: <C0Bv9r.EvL@flatlin.ka.sub.org>
- References: <1992Dec30.165109.29838@netcom.com>
- Keywords: chdir cd environment
- Lines: 22
-
- In <1992Dec30.165109.29838@netcom.com> ian@netcom.com (James Ian McGowan) writes:
- >How can i use the chdir() call in a program and have it affect
- >the current directory of the parent process?
-
- You can't. The parent process must execute a chdir(2) call itself.
-
- > Is there some
- >tricky way of telling the shell (csh in this case) to do a cd?
-
- You could tell the parent to the it's own chdir() but this requires
- cooperation from the parent.
-
- >If this is a FAQ, i apologise. Pointers to sources of
- >information about how a child process can affect the environment
- >of its parent would be very welcome.
-
- Look into the comp.unix.questions FAQ, it covers this topic at length.
- --
- Christoph Badura --- bad@flatlin.ka.sub.org
-
- AIX is a better... is a better... is a better... OpenSystem.
- IBM Rep at GUUG Symposium '92
-