Changeset 618
- Timestamp:
- Oct 15, 2007 2:10:33 PM (13 years ago)
- Location:
- branches/testScripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/testScripts/NBemail.py
r617 r618 3 3 import os 4 4 import sys 5 from socket import gethostname 5 6 import smtplib 6 7 … … 37 38 38 39 emailMsg = "'" + cmd + "' from directory " + curDir + " failed.\n\n" 39 emailMsg += "Operating System: "+os.name+"\n" 40 41 emailMsg += "Operating System: "+sys.platform+" "+os.name+"\n" 42 emailMsg += "Host name: "+gethostname()+"\n\n" 43 40 44 emailMsg += "'" + cmd + "' messages are:\n" 41 45 emailMsg += cmdMsgs -
branches/testScripts/NBuserConfig.py
r617 r618 1 1 #! /usr/bin/env python 2 3 from socket import gethostname 2 4 3 5 #---------------------------------------------------------------------- … … 12 14 # done. If the directory does not exist, it will be created. 13 15 #---------------------------------------------------------------------- 14 NIGHTLY_BUILD_ROOT_DIR = '/home/jp/COIN' 16 if gethostname()=='ubuntu' : 17 NIGHTLY_BUILD_ROOT_DIR = '/home/jp/COIN' 18 elif gethostname()=='math01.watson.ibm.com' : 19 NIGHTLY_BUILD_ROOT_DIR = '/u/jpfasano/COIN/nbTest' 20 else : 21 NIGHTLY_BUILD_ROOT_DIR = 'xxxxx' 22 15 23 16 24 #---------------------------------------------------------------------- … … 34 42 # project manager. 35 43 #---------------------------------------------------------------------- 36 #SMTP_SERVER_NAME = 'outgoing.verizon.net' 37 #SMTP_SERVER_PORT = 25 38 #SMTP_SSL_SERVER = 0 39 #SMTP_USER_NAME = 'jpfasano' 44 if gethostname()=='ubuntu' or gethostname()=='math01.watson.ibm.com': 45 #SMTP_SERVER_NAME = 'outgoing.verizon.net' 46 #SMTP_SERVER_PORT = 25 47 #SMTP_SSL_SERVER = 0 48 #SMTP_USER_NAME = 'jpfasano' 40 49 41 SMTP_SERVER_NAME = 'smtp.gmail.com' 42 SMTP_SERVER_PORT = 587 43 SMTP_SSL_SERVER = 1 44 SMTP_USER_NAME = 'jpfasano _AT_ gmail _DOT_ com' 45 SMTP_PASSWORD_FILENAME = '/home/jp/bin/smtpPwFile' 50 SMTP_SERVER_NAME = 'smtp.gmail.com' 51 SMTP_SERVER_PORT = 587 52 SMTP_SSL_SERVER = 1 53 SMTP_USER_NAME = 'jpfasano _AT_ gmail _DOT_ com' 54 if gethostname()=='ubuntu' : 55 SMTP_PASSWORD_FILENAME = '/home/jp/bin/smtpPwFile' 56 else : 57 SMTP_PASSWORD_FILENAME = '/u/jpfasan/COIN/bin/smtpPwFile' 46 58 47 SENDER_EMAIL_ADDR='jpfasano _AT_ verizon _DOT_ net' 48 MY_EMAIL_ADDR='jpfasano _AT_ us _DOT_ ibm _DOT_ com' 49 SEND_MAIL_TO_PROJECT_MANAGER=0 50 #SMTP_SERVER_NAME = 'gsbims.chicagogsb.edu' 59 SENDER_EMAIL_ADDR='jpfasano _AT_ verizon _DOT_ net' 60 MY_EMAIL_ADDR='jpfasano _AT_ us _DOT_ ibm _DOT_ com' 61 SEND_MAIL_TO_PROJECT_MANAGER=0 62 else : 63 SMTP_SERVER_NAME = 'xxxxx' 64 SMTP_SERVER_PORT = 25 65 SMTP_SSL_SERVER = 0 66 SMTP_USER_NAME = 'xxxx _AT_ xxxx _DOT_ com' 67 SMTP_PASSWORD_FILENAME = '/home/userid/xxxxx' 68 69 SENDER_EMAIL_ADDR='xxxxx _AT_ xxxxx _DOT_ net' 70 MY_EMAIL_ADDR='xxxxx _AT_ xxxxx _DOT_ xxxxx _DOT_ com' 71 SEND_MAIL_TO_PROJECT_MANAGER=0 51 72 52 73
Note: See TracChangeset
for help on using the changeset viewer.