Friends.
It seems there are some issues with python raw_input and redirecting
stderr in bash
Here is the code:
File: test.py
print "Test Program"
name=raw_input("Enter Your name: ")
print name
Execution:
<snip>
$python test.py
Test Program
Enter Your name: shrini
shrini
$python test.py 2> error
Test Program
</snip>
When use redirections while calling python program, the raw_input is
not working.
There is some interesting dicsussion here:
http://bytes.com/topic/python/answers/27498-raw_input-why-doesnt-prompt-go-stderr
Is there any way to use both raw_input and error redirection?
--
Regards,
T.Shrinivasan
My Life with GNU/Linux : http://goinggnu.wordpress.com
Free/Open Source Jobs : http://fossjobs.in
Get CollabNet Subversion Edge : http://www.collab.net/svnedge
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc