os.popen output different from native shell output

nickname thebiggestbangtheory at gmail.com
Tue Aug 25 22:32:57 CEST 2009


On Aug 25, 11:57 am, Thomas Guettler <guet... at thomas-guettler.de>
wrote:
> 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.
>
>

very good point, I will look it up :-)



More information about the Python-list mailing list