os.system dual behaviour

iu2 israelu at elbit.co.il
Wed Sep 3 11:27:36 EDT 2008


Hi guys

I do

os.system('ls &> e')

On one linux machine it emits ls output to the file e as expected.
On another linux machine it emits ls to the standard output, and
nothing to e!
Both machines run Fedora linux.

The command "ls &> e" entered at the shell (no python) behaves ok on
both machines.

Why?? How can I solve this?

Your help will be appreciated.



More information about the Python-list mailing list