Changeset 75


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

promote

Location:
nutchez-0.1
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • nutchez-0.1/bin/nutch

    r66 r75  
    103103# CLASSPATH initially contains $NUTCH_CONF_DIR, or defaults to $NUTCH_HOME/conf
    104104CLASSPATH=${NUTCH_CONF_DIR:=$NUTCH_HOME/conf}
     105
    105106CLASSPATH=${CLASSPATH}:$JAVA_HOME/lib/tools.jar
    106107
  • 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
  • nutchez-0.1/bin/nutchez-func.sh

    r72 r75  
    102102  echo_vb "2.1 test_file ~/.nutchez/sav return : $?"
    103103  # dialog begin
    104   dialog --editbox ~/.nutchez/sav/n.urls.txt 16 51 2>/tmp/n.urls.tmp
     104  dialog --title "The URLS that you want" --editbox ~/.nutchez/sav/n.urls.txt 16 51 2>/tmp/n.urls.tmp
    105105  RET=$?
    106106  echo_vb "2.1 cat url: `cat /tmp/n.urls.tmp`"
     
    147147  #read READ
    148148  $DIALOG --title "Check It !!" --clear \
     149        --extra-button --extra-label "reset" --ok-label "ok" --cancel-label "exit" \
    149150        --yesno "$MSG" 26 51
    150151  RET=$?
     
    166167  install_tomcat
    167168  echo_vb "/opt/nutch/bin/nutch crawl ~/.nutchez/urls -dir ~/.nutchez/search -depth $DEPTH"
    168   echo_vb "$NUTCH_CONF_DIR"
     169  echo_vb "nutch conf dir = $NUTCH_CONF_DIR"
    169170  /opt/nutch/bin/nutch crawl ~/.nutchez/urls -dir ~/.nutchez/search -depth $DEPTH
    170171}
  • nutchez-0.1/debian/nutchez.postrm

    r69 r75  
    77fi
    88
    9 if [ -e HOME/.nutchez ]; then
    10   rm -rf $HOME/.nutchez
    11 fi
     9#if [ -e $HOME/.nutchez ]; then
     10#  rm -rf $HOME/.nutchez
     11#fi
     12
     13for i in `sudo find /home/ -name ".nutchez"`; do
     14  if [ -d $i ];then
     15    echo "delete this dir :  $i"
     16    rm -ir $i
     17  fi
     18done
    1219
    1320rm -f /usr/local/sbin/nutchez*
Note: See TracChangeset for help on using the changeset viewer.