!--------------------------------------------------------------------
!
!  fgspol.resource 
!
!      External poller using xpoll
!
!      This file is used to construct the trigger, error, and success 
!      status fields in the observation status file.
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!            PR
!   DATE   NUMBER  User      Description
! -------- ------  --------- -------------------------------------
! 10/24/01 44684   Goldst    Created initial version 
! 02/14/02 45016   Goldst    Corrected ENV.SET_STATUS
! 01/15/03 47209   J.Baum    Add FILE_DUPLICATE.DANGLE 
! 03/26/03 46669   Goldst    Change SET_STATUS value for EPC
! 02/16/04 45981   MSwam     Account for new SC stage
! 06/24/04 51412   Sherbert  For PR 50437 Remove DISPLAY_ORDER
!--------------------------------------------------------------------

PROCESS_NAME = fgspol 
TASK         = <xpoll -p $PATH_FILE -r fgspol>
DESCRIPTION  = 'Polls FGS telemetry files'
COMMAND      = eng_poll.pl
SYSTEM       = FGS
CLASS        = eng

FILE_RANK         = 1
FILE_DIRECTORY1   = FGS_TELEM_DIR
FILE_OBJECT1      = *.fgs

FILE_PROCESSING.DANGLE  = _proc
FILE_SUCCESS.DANGLE 	= _done
FILE_ERROR.DANGLE       = _bad
FILE_DUPLICATE.DANGLE   = _duplicate

XPOLL_STATE.11    = FILE_SUCCESS
XPOLL_STATE.13    = FILE_ERROR      ! cannot create OSF
XPOLL_STATE.15    = FILE_DUPLICATE  ! duplicate marked in osf
XPOLL_ERROR.FP    = x               ! Undefined exit status

POLLING_TIME      = 10          ! Wait (seconds) before polling for next   

ENV.PIPELINE      = FGS
ENV.DATA_ID       = eng
ENV.PROC_EXT      = .fgs_proc
ENV.SET_STATUS    = cwwwnnnnnnnnw
ENV.DUPLICATE     = d
ENV.POLL_STEP     = FP

! ENV values to be passed to the eng_poll.pl script
