smptlib frustration!

Hornberger, Chris Chris.Hornberger at blackrock.com
Fri May 14 15:04:15 EDT 2004


Capture the stderr stream as well as stdout. it's not uncommon for status messages to go to stderr rather than stdout on occasion. 

--------------------------
Chris Hornberger
Blackrock - 302.797.2318
chris.hornberger at blackrock.com

Card carrying MSDN member since 2004.
No, really. I've got the card to prove it.


-----Original Message-----
From: python-list-bounces+chris.hornberger=blackrock.com at python.org
[mailto:python-list-bounces+chris.hornberger=blackrock.com at python.org]On
Behalf Of Joe
Sent: Friday, May 14, 2004 2:58 PM
To: python-list at python.org
Subject: smptlib frustration!


Ok I have written a perfectly well working script that uses smptlib
module to email myself if the script ended in success or failure. 
However, this module automatically outputs the results to the console
to show the status of the connection/send/recieve etc...  This is a
big problem for me.  I am trying to run this script from Backup Exec
as a pre-processing job.  This causes my script to always fail because
Backup Exec pre-processing jobs can not output to a console!  What am
I to do?  Is there a way to stop this module from outputing the status
to the console without having to actually modify the standard module? 
Thanks!
-- 
http://mail.python.org/mailman/listinfo/python-list




More information about the Python-list mailing list