Is it possible to get whole commandline include redirection.., etc

postindex at gmail.com postindex at gmail.com
Sat Jan 13 00:11:46 CET 2007


Can I get whole commandline not only argument list.

1. When I command like this
    $ a.py > filename
2. sys.argv is returns only argument list
    ['a.py']

Is there a way to find out 'redirection' information.

thank you for reading this




More information about the Python-list mailing list