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

MK lopoff at gmx.net
Fri May 15 12:05:26 CEST 2009


Ok. I explain it once more. Its not about reading the console output of
the command. Its that i want to put a empty file in my subdirectories
so that the name of the file is a message or url or something else.
And if you want an empty file you can do that with 
"cat > IAmAnEmptyFileWithOnlyAName"
under linux on the CLI.

But the problem or advantage of is that you can put some lines in
the text file if you want. And if youre ready youm must
terminate the console/terminal with CTRL+D so that cat knows
that the input is finished.

I have no lines i want to input in the file. So i must only send
and CTRL+D to cat again that it terminates.

Actually a very simple way i thought. But maybe not.

Thank you.



More information about the Tutor mailing list