Changeset 108


Ignore:
Timestamp:
Sep 1, 2009, 6:34:31 PM (15 years ago)
Author:
waue
Message:

years and log

Location:
nutchez-0.1
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • nutchez-0.1/bin/nutchez-func.sh

    r101 r108  
    2525
    2626echo_dialog_v () {
    27   if [ $VERB -eq 1 ]; then
     27  if [[ $VERB -eq 1 ]]; then
    2828    $DIALOG --msgbox "$1" 16 51
    2929  fi
     
    4040
    4141check_if_root() {
    42    if [ ! "$UID" -eq "0" ]; then
     42   if [[ ! "$UID" -eq "0" ]]; then
    4343     echo_dialog_v "Hi [$LOGNAME] !! "
    4444     echo_dialog_v "You need to run this script \"`basename $0`\" as root."
     
    7474  cp ~/.nutchez/sav/n.urls.txt ~/.nutchez/urls/urls.txt
    7575  if ! [ -z $NOCONTINUE ]; then
    76     if [ $NOCONTINUE -eq 1 ]; then
     76    if [[ $NOCONTINUE -eq 1 ]]; then
    7777      echo_dialog_v " delete the ~/.nutchez/search/*"
    78       DATE=`date +%y%m%d%H%M%S`
     78      DATE=`date +%Y%m%d%H%M%S`
    7979      mv ~/.nutchez/search ~/.nutchez/search-$DATE
    8080      $DIALOG --msgbox "上次搜尋的結果改放到 ~/.nutchez/search-$DATE " 0 0
     
    173173  echo " \n\n 4. NutchEz將會把你的搜尋結果呈現在這個Port : \n " >> $tempfile
    174174  cat /tmp/n.tomcat.tmp >> $tempfile
    175   if [ $NOCONTINUE -eq 0 ];then
     175  if [[ $NOCONTINUE -eq 0 ]];then
    176176    echo " \n\n 5. 是否要清除上一次的收尋結果 : \n " >> $tempfile
    177177    echo_dialog_v " 7continue = $CONTINUE"
    178178    echo "NO" >> $tempfile
    179   elif [ $NOCONTINUE -eq 1 ];then
     179  elif [[ $NOCONTINUE -eq 1 ]];then
    180180    echo " \n\n 5. 是否要清除上一次的收尋結果繼續搜尋 : \n " >> $tempfile
    181181    echo_dialog_v " 7continue = $CONTINUE"
     
    245245  FIREFOX=`which firefox`
    246246  RET=$?
    247   if [ $RET -eq 0 ];then
     247  if [[ $RET -eq 0 ]];then
    248248    $FIREFOX -D 0.0 http://localhost:$PORT
    249249    RET=$?
    250250  fi
    251   if ! [ $RET -eq 0 ];then
     251  if ! [[ $RET -eq 0 ]];then
    252252    $DIALOG --msgbox "恭喜你已經完成了! \n 你可以用瀏覽器瀏覽: \n  http://host_ip:$PORT" 0 0
    253253  fi
  • nutchez-0.1/conf/log4j.properties

    r66 r108  
    11# Define some default values that can be overridden by system properties
    22hadoop.root.logger=INFO,console
    3 hadoop.log.dir=.
     3hadoop.log.dir=~/.nutchez/log
    44hadoop.log.file=hadoop.log
    55
Note: See TracChangeset for help on using the changeset viewer.