redirect to > and to console ?

Shagshag13 shagshag13 at yahoo.fr
Fri Jul 26 04:57:51 EDT 2002


hello,

i use many python script like that : ./myscript.py file_in > file_out

i wish i would sometimes like to force output to be redirect to console instead of file file_out, is there any way of doing that ?
(for example to display errors message while file_in will contain only data processed)

(or should i do ./myscript.py file_in file_out > log.file and let myscript handle i/o ?)

thanks,

s13.





More information about the Python-list mailing list