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

postindex at gmail.com postindex at gmail.com
Fri Jan 12 18:11:46 EST 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