Unix commands within Python code

Kory Wheatley wheakorypersonal at yahoo.com
Thu Jul 15 19:56:56 CEST 2004

Hi all,

I've just started to learn Python and I have a

What is the syntax to embed Unix commands, or call
other programs within a Python script?

for example I would like to use a system chmod unix
command in the python script:

chmod 666 /tmp/filename

or call another script 

/home/mailman/bin/list_members facultynews

I would appreciate if someone can send me the syntax,
or if its even possible.

Kory Wheatley

Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!

More information about the Python-list mailing list