Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.stsci.edu/spst/UnixTransition/doc/receive_dan.html
Дата изменения: Fri Apr 8 12:46:15 2016 Дата индексирования: Mon Apr 11 01:39:34 2016 Кодировка: Поисковые слова: massive stars |
receive_dan | index receive_dan.py |
This tool monitors the DAN server for new DANs. When a new one is found, it is
placed in the $DAN_RECEIVE_DIR. Each DAN is moved to $DAN_RECEIVE_DIR/dan_archive for
archiving purposes. All files referenced by the DANs are copied to
$DAN_RECEIVE_DIR/holding. Log files are kept in $DAN_RECEIVE_DIR/log.
Once an attempt is made to process the files, they are moved to subdirectories
of $DAN_RECEIVE_DIR/received_files.
* If the element DAN_ENV has a value other than OPS, all files are moved to
$DAN_RECEIVE_DIR/received_files/test.
* If the file type (from element TYPE) is unknown, it is moved to
$DAN_RECEIVE_DIR/received_files/unprocessed.
* If an error prevented the file from being processed, it is moved to
$DAN_RECEIVE_DIR/received_files/error.
* A successfully processed file is moved to a subdirectories of
$DAN_RECEIVE_DIR/received_files/processed. (Subdirectories are determined
by the DAN TYPE element.)
Three different types of DANs are possible: JWST Spacecraft Ephemeris file, DSN
Contact schedule file, and Observatory Status file. Each is processed with the
appropriate VSS command ("ephem -create_jwst", "dsn -load", and
"observatory_status -load", respectively).
After each DAN is processed, a mail message is sent to the distribution
RECEIVE_DAN.DIS describing any warnings and errors. Optionally, a DAN_ACK file
is returned to the DAN sender depending on the value of the DAN element ACKNAK
element.
The script that does this processing (receive_dan.py) runs as a recurrent batch
job that runs periodically (say, every 10 minutes).
Modules | ||||||
|
Functions | ||
|
Data | ||
absolute_import = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384) division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192) print_function = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 65536) unicode_literals = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 131072) |