Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/spst/UnixTransition/doc/send_alert.html
Дата изменения: Fri Apr 8 12:46:15 2016
Дата индексирования: Mon Apr 11 00:39:28 2016
Кодировка:
Python: module send_alert
 
 
send_alert (version 14.01.08)
index
send_alert.py

PURPOSE --
Send alert e-mail to TelAlert. 
 
 
DEVELOPER --
Gary Bower
 
MODIFICATION HISTORY --
 
o Initial implementation 07/07/11
o Fix variable assignment and add test option. gab 07/12/11
o Fix cc option, and use a cc distribution list. gab 08/23/11
o Fix typo in output. gab 09/28/11
o Fixup handling of the contents of the DISTRIBUTION list. mdr 11/3/11
o modify for running from test account drc 1/8/14

 
Modules
       
configure_util
file_util
os
spss_sys_util
spst_getopt
string
sys
time_util

 
Functions
       
run(*args)
Send alert e-mail msg to TelAlert.
 
Usage:
do send_alert [-cc= -type=[deliver, intercept, or support] -sms=sms_id
-time=<SOGS time of delivery with -type=intercept> -load=<load name of first changed load>
-generic|urgent -contact_number=phone_number -test]
 
example: do send_alert -type=deliver -sms=sa178v00_f
 
This example would send an e-mail to TelAlert informing the FOT
that SMS products are ready to be delivered.
 
example: do send_alert -type=intercept -sms=sa178v00_f -time=<SOGS time of
         delivery of intercept SMS> -load=<load name of first changed load>
 
This example would send an e-mail to TelAlert informing the FOT
that the currently flying SMS will be intercepted.
 
example: do send_alert -type=support -generic|urgent
 
This example would send an e-mail to TelAlert informing the FOT
of a request for operations support. One of the options generic or
urgent can be specified.
 
If -cc is included, then its value is used as the cc list.
 
If -deliver is included, then -sms should be included and specified
(if not, the user is prompted).
 
If -test is included, the user is prompted to provide the destination
of the message. Otherwise, the defined constant DISTRIBUTION is the
destination of the message.
 
sms_id must be the name of the SMS to be delivered.

 
Data
        DISTRIBUTION = 'alertinc@hst.nasa.gov'
PLANINST = 'planinst@stsci.edu'
SUBJECT = 'TA_response_alert'
TEST_ACCOUNT = False
__version__ = '14.01.08'