/[swish]/trunk/crawl-parallel.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/crawl-parallel.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 47 by dpavlin, Tue Jan 20 15:58:15 2004 UTC revision 54 by dpavlin, Tue Jan 20 18:42:05 2004 UTC
# Line 26  rm index/*temp Line 26  rm index/*temp
26    
27  find config/ | while read config ; do  find config/ | while read config ; do
28          while [ `find index -name "*temp" | wc -l` -ge $max ] ; do          while [ `find index -name "*temp" | wc -l` -ge $max ] ; do
29                  echo "sleep"                  #echo "sleep"
30                  sleep 1                  sleep 1
31          done          done
32                    
# Line 34  find config/ | while read config ; do Line 34  find config/ | while read config ; do
34          if [ -e "index/$index" -o -e "index/$index.temp" ] ; then          if [ -e "index/$index" -o -e "index/$index.temp" ] ; then
35                  echo "skip $index"                  echo "skip $index"
36          else          else
37                  ( echo "indexing $index" && swish-e -S prog -c $config | grep "files indexed" || rm index/$index*temp ) &                  ( swish-e -S prog -c $config | grep "files indexed" | sed "s/^/'$index': /" || rm index/$index*temp ) &
38          fi          fi
39  #       ( echo $index && touch index/$index.temp && sleep 3 && rm index/$index.temp ) &  #       ( echo $index && touch index/$index.temp && sleep 3 && rm index/$index.temp ) &
40  done  done

Legend:
Removed from v.47  
changed lines
  Added in v.54

  ViewVC Help
Powered by ViewVC 1.1.26