[Tutor] Multiple lines with the command line

Alan Gauld alan.gauld at btinternet.com
Wed Apr 18 21:29:40 CEST 2007

"Kharbush, Alex [ITCSV]" <alexf4 at iastate.edu> wrote

> I need multiple entries with the os.system(cmd)line

> MY PROBLEM is that i need to enter multiple lines of 
> input into unix. os.system() takes only one argument

How about uysing popen instead?
Or the new Popen class in the subprocess module...

Alan G.

More information about the Tutor mailing list