Module for generic platform information: platform.py
M.-A. Lemburg
mal at lemburg.com
Thu Oct 28 04:41:33 EDT 1999
"Betancourt, Josef" wrote:
>
> I use the following code. Its kludgy and I'm a Python newbie, but so far it
> works, so.....
> ...
> if on98 :
> program = os.popen(cmdl, 'r')
> elif onNT :
> program = os.popen('( ' + cmdl + ' ) 2>&1', 'r')
> else:
> program = os.popen('{ ' + cmdl + '; } 2>&1', 'r')
> ...
Is that how one can do redirection on Windows NT ? Would be interesting
to add in order to avoid silly notices being printed to stderr.
Thanks,
--
Marc-Andre Lemburg
______________________________________________________________________
Y2000: 64 days left
Business: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/
More information about the Python-list
mailing list