[Mono-list] Changing directory outside of process.

Chris Howie cdhowie at gmail.com
Fri Jan 16 11:16:51 EST 2009


On Fri, Jan 9, 2009 at 11:00 AM, floppyformattingfrenzy
<floppyformattingfrenzy at gmail.com> wrote:
> Is there any way to change the directory when the process expires? This would
> be something akin to what the program cd does. 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. 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.

If you mean have the Mono process change the working directory of its
parent process, no, that's not possible because it doesn't make any
sense to do that.  You could wrap your program in a shell script that
changes the directory when the Mono process ends, if the directory you
want to wind up in is always the same.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers


More information about the Mono-list mailing list