os.popen output different from native shell output

Thomas Guettler guettli at thomas-guettler.de
Tue Aug 25 14:57:59 EDT 2009


In one of the first chapters of "Advanced programming in the unix
environment (second edition)" there is explained how a unix shell works.

You could write you own shell using python. This way the python
interpreter gets stared only once, and not for every call to "ls".



Have fun,
  Thomas

nickname schrieb:
> wow guys! thanks for all the great leads! this is awesome!
> 
> The reason why I want to do this is because I am going to do a little
> project. I will write a python script called ls which will log the
> time and username and then will show the actual ls output. I want this
> to be transparent and so want to throw the ls output (via python)
> exactly as it will be in native shell execution.



More information about the Python-list mailing list