Re: [Tutor] Multiple lines with the command line

2007-04-18 Thread Alan Gauld
"Kharbush, Alex [ITCSV]" <[EMAIL PROTECTED]> 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

Re: [Tutor] Multiple lines with the command line

2007-04-16 Thread Tom Tucker
Sorry, you mentioned you wanted to use the Unix mail program. Is your information static? If yes, how bout this. cmd = "mail -s 'my subject' [EMAIL PROTECTED] <[EMAIL PROTECTED]> < /path/to/static_message" os.system(cmd) Similar approach could be to capture the users message body as command line

Re: [Tutor] Multiple lines with the command line

2007-04-16 Thread Tom Tucker
Have you tried the "email" module? http://docs.python.org/lib/module-email.html On 4/16/07, Kharbush, Alex [ITCSV] <[EMAIL PROTECTED]> wrote: I want to use the UNIX Mail program with python I need multiple entries with the os.system(cmd)line I will need something like this #output to uni

[Tutor] Multiple lines with the command line

2007-04-16 Thread Kharbush, Alex [ITCSV]
I want to use the UNIX Mail program with python I need multiple entries with the os.system(cmd)line I will need something like this #output to unix Mail [EMAIL PROTECTED] -f [EMAIL PROTECTED] Subject : hello alex #message part how is it going #the end of mail . When I write os.system("Mail