Changeset 1092
- Timestamp:
- Sep 7, 2012 1:40:02 PM (10 years ago)
- Location:
- pvMail
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pvMail/doc/source/index.rst
r946 r1092 4 4 ================================== 5 5 6 http s://subversion.xray.aps.anl.gov/admin-bcdaext/pvMail6 http://subversion.xray.aps.anl.gov/admin_bcdaext/pvMail 7 7 8 8 PvMail was built to watch (monitor) an EPICS PV and send an email -
pvMail/doc/source/info.rst
r932 r1092 34 34 maintained using sphinx (http://sphinx.pocoo.org), 35 35 can be accessed from the WWW at 36 http s://subversion.xray.aps.anl.gov/bcdaext/pvMail/doc/build/html/index.html36 http://subversion.xray.aps.anl.gov/admin_bcdaext/pvMail 37 37 :index:`PvMail project` 38 38 and also -
pvMail/pvMail.py
r932 r1092 5 5 6 6 Documentation: 7 http s://subversion.xray.aps.anl.gov/bcdaext/pvMail/doc/build/html/index.html7 http://subversion.xray.aps.anl.gov/admin_bcdaext/pvMail 8 8 9 9 see the help option for immediate details about the command-line:: -
pvMail/src/PvMail/pvMail.py
r933 r1092 81 81 __institution__ = "Advanced Photon Source, Argonne National Laboratory" 82 82 __author_email__= "jemian@anl.gov" 83 __url__ = "http s://subversion.xray.aps.anl.gov/trac/bcdaext/wiki/pvMail"83 __url__ = "http://subversion.xray.aps.anl.gov/admin_bcdaext/pvMail" 84 84 __license__ = "(c) 2009-2012, UChicago Argonne, LLC" 85 85 __license__ += " (see LICENSE file for details)" … … 255 255 global gui_object 256 256 257 email_program = '/usr/lib/sendmail' 257 258 from_addr = sys.argv[0] 258 259 to_addr = str(" ".join(recipients)) 259 mailprogram = " /usr/lib/sendmail -F %s -t %s" % (from_addr, to_addr)260 mailprogram = "%s -F %s -t %s" % (email_program, from_addr, to_addr) 260 261 mail_command = [mailprogram, "Subject: "+subject, message] 261 262 cmd = '''cat << +++ | %s\n+++''' % "\n".join(mail_command) … … 268 269 try: 269 270 logger( "email command:\n" + cmd ) 270 os.popen(cmd) # send the message 271 if os.path.exists(email_program): 272 os.popen(cmd) # send the message 273 else: 274 logger( 'email program (%s) does not exist' % email_program ) 271 275 except: 272 276 err_msg = traceback.format_exc()
Note: See TracChangeset
for help on using the changeset viewer.