Changeset 108
- Timestamp:
- Sep 1, 2009, 6:34:31 PM (15 years ago)
- Location:
- nutchez-0.1
- Files:
-
- 1 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.1/bin/nutchez-func.sh
r101 r108 25 25 26 26 echo_dialog_v () { 27 if [ $VERB -eq 1]; then27 if [[ $VERB -eq 1 ]]; then 28 28 $DIALOG --msgbox "$1" 16 51 29 29 fi … … 40 40 41 41 check_if_root() { 42 if [ ! "$UID" -eq "0"]; then42 if [[ ! "$UID" -eq "0" ]]; then 43 43 echo_dialog_v "Hi [$LOGNAME] !! " 44 44 echo_dialog_v "You need to run this script \"`basename $0`\" as root." … … 74 74 cp ~/.nutchez/sav/n.urls.txt ~/.nutchez/urls/urls.txt 75 75 if ! [ -z $NOCONTINUE ]; then 76 if [ $NOCONTINUE -eq 1]; then76 if [[ $NOCONTINUE -eq 1 ]]; then 77 77 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` 79 79 mv ~/.nutchez/search ~/.nutchez/search-$DATE 80 80 $DIALOG --msgbox "上次搜尋的結果改放到 ~/.nutchez/search-$DATE " 0 0 … … 173 173 echo " \n\n 4. NutchEz將會把你的搜尋結果呈現在這個Port : \n " >> $tempfile 174 174 cat /tmp/n.tomcat.tmp >> $tempfile 175 if [ $NOCONTINUE -eq 0];then175 if [[ $NOCONTINUE -eq 0 ]];then 176 176 echo " \n\n 5. 是否要清除上一次的收尋結果 : \n " >> $tempfile 177 177 echo_dialog_v " 7continue = $CONTINUE" 178 178 echo "NO" >> $tempfile 179 elif [ $NOCONTINUE -eq 1];then179 elif [[ $NOCONTINUE -eq 1 ]];then 180 180 echo " \n\n 5. 是否要清除上一次的收尋結果繼續搜尋 : \n " >> $tempfile 181 181 echo_dialog_v " 7continue = $CONTINUE" … … 245 245 FIREFOX=`which firefox` 246 246 RET=$? 247 if [ $RET -eq 0];then247 if [[ $RET -eq 0 ]];then 248 248 $FIREFOX -D 0.0 http://localhost:$PORT 249 249 RET=$? 250 250 fi 251 if ! [ $RET -eq 0];then251 if ! [[ $RET -eq 0 ]];then 252 252 $DIALOG --msgbox "恭喜你已經完成了! \n 你可以用瀏覽器瀏覽: \n http://host_ip:$PORT" 0 0 253 253 fi -
nutchez-0.1/conf/log4j.properties
r66 r108 1 1 # Define some default values that can be overridden by system properties 2 2 hadoop.root.logger=INFO,console 3 hadoop.log.dir= .3 hadoop.log.dir=~/.nutchez/log 4 4 hadoop.log.file=hadoop.log 5 5
Note: See TracChangeset
for help on using the changeset viewer.