Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/spst/lrpg/documentation/procedures/lrpg_validator_procedure.html
Дата изменения: Tue Apr 12 19:23:54 2005
Дата индексирования: Sun Mar 2 12:15:37 2014
Кодировка:

Поисковые слова: md-11
Running the Validator

Running the Validator


  1. Make a new directory in /data/lrp/validator
  2. You should name this directory the name of the LRP you are trying to validate.

  3. Make a command file called validator_lrpname-command
  4. For example for validating the 05088A, the file should be called validator_05088A-command. It should contain the following:

    
    #!/bin/tcsh -f
    /data/software/lispimages/biglisp -I /data/lrp/spike_images/raw-validator-28p0_v3.image < /data/lrp/validator/05088A/validator_05088A.lisp > /data/lrp/validator/05088A/validate-lrp-05088A.log
    

    It needs to be an executable file. To change the file to an executable:

    unixprompt> chmod a+x validator_05088A-command

  5. Make the script to run the validator
  6. This file should be called validator_05088A.lisp (for the 05088A LRP). It should contain:

    
    (format t "~%Executing a validator script -- ~a~%" (get-formatted-universal-time))
    
    (load-a-control-file "validator-control-file")
    
    (format t "~%Loading proposals into validator image -- ~a~%" (get-formatted-universal-time))
    (load-props :props '(
    
    ---insert the list of proposals from /data/lrp/find-lrp.lis here---
    
    ))
    
    (format t "~%Running validator -- ~a~%" (get-formatted-universal-time))
    
    (run-validator 
    :plan-key "05088A" 
    :control-file "validator-control-file"
    :critic-file "val-auto-critic"
    :search-depth 0
    :report-dir "/data/lrp/validator/05088A/"
    :add-ext "V05088A"
    )
    
    (format t "~%Image dump -- ~a~%" (get-formatted-universal-time))
    
    (dump-image "val_c_all_V05088A" :directory "/data/lrp/spike_images/")
    
    (format t "~%Plan write -- ~a~%" (get-formatted-universal-time))
    
    (write-plan "V05088A" :comment "Validator run on current baselined LRP")
    
    (format t "~%Resource report -- ~a~%" (get-formatted-universal-time))
    
    (resource-rpt "/data/lrp/validator/05088A/resources-v05088A.rpt" :sogs-start "03.160" :sogs-end "07.001")
    
    (exit)
    

    Make sure that you update the LRP names and file names correctly.

  7. Run the validator
  8. unixprompt> validator_05088A-command > log.log &

    The log.log will catch anything that gets printed to the screen, and the & will background the process, and free up the window.

  9. Make sure the validator seems to be working:
  10. unixprompt> tail -f validate-lrp-05088A.log

    Make sure the output looks reasonable, and that the process didn't crash.