[Mono-list] Changing directory outside of process.
jonpryor at vt.edu
Fri Jan 16 14:16:19 EST 2009
On Fri, 2009-01-09 at 08:00 -0800, floppyformattingfrenzy wrote:
> Is there any way to change the directory when the process expires? This would
> be something akin to what the program cd does.
`cd' isn't a program, it's a shell builtin. (It needs to be, as the
chdir(2) system call only effects the current process and subsequently
created child processes, not the parent process or previously created
> I know there's way so setting
> the directory of the process and a way of setting environment variables, but
> these seem to reset after the program expires.
That's why -- the changes only effect the current process.
> I would look this up, but I
> honestly have no idea what to search; I've tried searching variations of
> change directory and persist, but I came up with nothing.
Advanced Programming in the Unix Environment covers this.
More information about the Mono-list