Changeset 101
- Timestamp:
- Jul 10, 2009, 5:20:32 PM (15 years ago)
- Files:
-
- 6 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.1/bin/nutchez
r100 r101 16 16 17 17 . /opt/nutchez/nutch/bin/nutchez-func.sh 18 19 cd ~ 18 20 19 21 init_nutchez -
nutchez-0.1/bin/nutchez-func.sh
r100 r101 79 79 mv ~/.nutchez/search ~/.nutchez/search-$DATE 80 80 $DIALOG --msgbox "上次搜尋的結果改放到 ~/.nutchez/search-$DATE " 0 0 81 rm -f /tmp/search81 # rm -f /tmp/search 82 82 # rm -rf ~/.nutchez/search/* 83 83 fi … … 88 88 sed -i -e "4s/<value>[a-zA-Z0-9]*</<value>$ROBOT</" ~/.nutchez/conf/nutch-site.xml 89 89 fi 90 91 90 } 92 91 … … 100 99 mkdir ~/.nutchez/search 101 100 fi 101 102 # setup search dir 103 cd ~ 104 HOMEDIR=`pwd`/.nutchez/search 105 sed -i -e "8s|<value>[a-zA-Z0-9/]*<|<value>$HOMEDIR<|" ~/.nutchez/tomcat/webapps/ROOT/WEB-INF/classes/nutch-site.xml 106 102 107 fi 103 108 # change explorer port … … 211 216 echo_dialog_v "8. start_tomcat " 212 217 echo_dialog_v "/opt/nutchez/nutch/tomcat/bin/startup.sh" 213 if [ -e /tmp/search ];then214 rm -rf /tmp/search215 fi216 ln -sf ~/.nutchez/search/ /tmp/218 #if [ -e /tmp/search ];then 219 # rm -rf /tmp/search 220 #fi 221 #ln -sf ~/.nutchez/search/ /tmp/ 217 222 218 223 pid_tc=$(ps axw -eo pid,command |\
Note: See TracChangeset
for help on using the changeset viewer.