/[Sack]/trunk/bin/cloud.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/bin/cloud.sh

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

revision 71 by dpavlin, Fri Sep 25 16:37:11 2009 UTC revision 73 by dpavlin, Fri Sep 25 18:51:42 2009 UTC
# Line 8  connect= Line 8  connect=
8  v=  v=
9    
10  #v='-v'  #v='-v'
11  #limit=5000  v='-C'
12    
13  hostname=`hostname -s`  hostname=`hostname -s`
14    
# Line 26  function node { Line 26  function node {
26                  ssh $1 killall sack.pl                  ssh $1 killall sack.pl
27          fi          fi
28    
29          ssh="ssh -L $port:127.0.0.1:$port $1"          ssh="ssh $v -L $port:127.0.0.1:$port $1"
30          test "$hostname" == $1 && ssh=""          test "$hostname" == $1 && ssh=""
31    
32          echo "# node $1 [$ssh] $offset $limit"          echo "# node $1 [$ssh] $offset $limit"
33    
34          echo 0 exit | nc localhost $port          echo 0 exit | nc localhost $port
35    
36          full="$ssh $v $2/srv/Sack/bin/sack.pl --listen $port --limit $limit --offset $offset"          full="$ssh $2/srv/Sack/bin/sack.pl --listen $port --limit $limit --offset $offset"
37          if [ ! -z "$DISPLAY" ] ; then          if [ ! -z "$DISPLAY" ] ; then
38                  xterm -T "$1 $port" -e $full &                  xterm -T "$1 $port" -e $full &
39          else          else
# Line 48  function node { Line 48  function node {
48  rm /dev/shm/sack.*  rm /dev/shm/sack.*
49    
50  if [ $hostname == 't61p' ] ; then  if [ $hostname == 't61p' ] ; then
51          node tab /          limit=10000
52            node tab  /
53            node tab  /
54            node x200 /
55            node x200 /
56            node t61p /
57  else  else
58          echo "# .lib";          echo "# .lib";
59          node mlin /virtual/webpac2.rot13.org/export/          node mlin /virtual/webpac2.rot13.org/export/

Legend:
Removed from v.71  
changed lines
  Added in v.73

  ViewVC Help
Powered by ViewVC 1.1.26