Changeset 75
- Timestamp:
- Jun 3, 2009, 5:44:01 PM (16 years ago)
- Location:
- nutchez-0.1
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.1/bin/nutch
r66 r75 103 103 # CLASSPATH initially contains $NUTCH_CONF_DIR, or defaults to $NUTCH_HOME/conf 104 104 CLASSPATH=${NUTCH_CONF_DIR:=$NUTCH_HOME/conf} 105 105 106 CLASSPATH=${CLASSPATH}:$JAVA_HOME/lib/tools.jar 106 107 -
nutchez-0.1/bin/nutchez
r72 r75 14 14 export NUTCH_CONF_DIR=~/.nutchez 15 15 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 17 18 18 19 . /opt/nutch/bin/nutchez-func.sh … … 65 66 # START , back, cancel 66 67 # 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 80 93 done 81 94 82 95 start_crawl 83 96 84 start_tomcat97 #start_tomcat 85 98 86 99 # show result message 87 100 88 show_report101 #show_report 89 102 90 103 # Done -
nutchez-0.1/bin/nutchez-func.sh
r72 r75 102 102 echo_vb "2.1 test_file ~/.nutchez/sav return : $?" 103 103 # dialog begin 104 dialog --editbox ~/.nutchez/sav/n.urls.txt 16 51 2>/tmp/n.urls.tmp104 dialog --title "The URLS that you want" --editbox ~/.nutchez/sav/n.urls.txt 16 51 2>/tmp/n.urls.tmp 105 105 RET=$? 106 106 echo_vb "2.1 cat url: `cat /tmp/n.urls.tmp`" … … 147 147 #read READ 148 148 $DIALOG --title "Check It !!" --clear \ 149 --extra-button --extra-label "reset" --ok-label "ok" --cancel-label "exit" \ 149 150 --yesno "$MSG" 26 51 150 151 RET=$? … … 166 167 install_tomcat 167 168 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" 169 170 /opt/nutch/bin/nutch crawl ~/.nutchez/urls -dir ~/.nutchez/search -depth $DEPTH 170 171 } -
nutchez-0.1/debian/nutchez.postrm
r69 r75 7 7 fi 8 8 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 13 for 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 18 done 12 19 13 20 rm -f /usr/local/sbin/nutchez*
Note: See TracChangeset
for help on using the changeset viewer.