[Tutor] Struggling with os.exec

Charlie Clark charlie@begeistert.org
Fri May 23 05:36:00 2003


On 2003-05-23 at 05:18:03 [+0200], tutor-request@python.org wrote:
> cd `cdmail thisuser`
> 
> This will execute the program 'cdmail' and it'll output the correct 
> directory - 'cd' will take this info, and cd there.
> 
> It's a PITA, but it works [well, mostly;kinda...]

Thanx for the tip but this won't do because it won't allow you to be 
interactive. Oh well, learned something new. It's for security reasons that 
it's not possible. I can imagine things causing all kinds of havoc if 
modifying parent processes is allowed: I think this is possible on MS 
Windows, isn't it?

Charlie