[Tutor] Python popen command using cat > textfile .... how to terminate

Noufal Ibrahim noufal at nibrahim.net.in
Fri May 15 19:46:22 CEST 2009


MK wrote:
> Hi there,
> 
> i am using this code to send an "cat > ThisIsMyUrl" with popen.
> Of cos cat now waits for the CTRL+D command. 
> How can i send this command ?

Wouldn't it be better if you directly opened the "ThisIsMyUrl" file and 
wrote the text into it rather than rely on shelling out for this?

[..]

-- 
~noufal
http://nibrahim.net.in/


More information about the Tutor mailing list