Le Sat, 7 May 2005 08:55:35 -0700 (PDT), Sara Khalatbari a écrit :
> There are a lot of commands that I need to use in my
> code & I don't know how to do it
>
> Is there a way to use shell commands in Python code?
Python is a scrpting language. So you can substitute most shell scripts
idioms with
"Sara Khalatbari" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> There are a lot of commands that I need to use in my
> code & I don't know how to do it
>
> Is there a way to use shell commands in Python code?
Yes, there are many popen() forms that you may wish to investigate. Bel
start to take a look at the call function of the subprocess module -
see http://docs.python.org/lib/node231.html
--
http://mail.python.org/mailman/listinfo/python-list