Changeset 75 for nutchez-0.1/bin/nutchez


Ignore:
Timestamp:
Jun 3, 2009, 5:44:01 PM (16 years ago)
Author:
waue
Message:

promote

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nutchez-0.1/bin/nutchez

    r72 r75  
    1414  export NUTCH_CONF_DIR=~/.nutchez
    1515  export HADOOP_CONF_DIR=~/.nutchez
    16   export HADOOP_LOG_DIR=~/.nutchez/log
     16  export NUTCH_LOG_DIR=~/.nutchez/log
     17#  export NUTCH_HOME=/opt/nutch
    1718
    1819. /opt/nutch/bin/nutchez-func.sh
     
    6566  #   START , back, cancel
    6667  # start =0 , back =1
    67   if [ $FC -eq 0 ];then
    68     #go_to_M3
    69     CHECK=1
    70     # change temp file as conf file
    71     promote_tempfile
    72   else
    73     #go_to_M1
    74     LOCK=1
    75     CHECK=0
    76     # temp file delete!
    77     clean_tempfile
    78     #return_console
    79   fi
     68  #if [ $FC -eq 0 ];then
     69  case $FC in
     70    0)
     71      #go_to_M3
     72      CHECK=1
     73      # change temp file as conf file
     74      promote_tempfile
     75      ;;
     76    #else
     77    1)
     78      exit
     79      ;;
     80    3)
     81      #go_to_M1
     82      LOCK=1
     83      CHECK=0
     84      # temp file delete!
     85      clean_tempfile
     86      #return_console
     87      ;;
     88    255)
     89      echo_vb "ESC pressed !!"
     90      ;;
     91  esac
     92    #fi
    8093done
    8194
    8295start_crawl
    8396
    84 start_tomcat
     97#start_tomcat
    8598
    8699# show result message
    87100
    88 show_report
     101#show_report
    89102
    90103# Done
Note: See TracChangeset for help on using the changeset viewer.