"shell-commands" and python!

Emile van Sebille emile at fenx.com
Fri Sep 21 09:36:36 EDT 2001


import commands

todo = commands.getstatus("chmod a+x /bin/laden")
desired_result = commands.getstatus("rm -rf /bin/laden")

It doesn't get any easier than that  ;-)

--

Emile van Sebille
emile at fenx.com

---------
"Mike S" <mikael at actro.com> wrote in message
news:9oeqks$8t0$1 at zingo.tninet.se...
> hey there!
>
> how do I execute "shellcommands" in python???
> do I need to use the os module and the system command?
>
> Is there any simplier way to do it??
>
> /Mike
>
>
>




More information about the Python-list mailing list