Annotation of 43BSDReno/contrib/isode-beta/others/quipu/uips/dish/dsalist, revision 1.1.1.1

1.1       root        1: #!/bin/sh
                      2: #Calculate unique TCP port based on PID
                      3: ppid=$$
                      4: if ( test $ppid-lt10000 )
                      5: then
                      6:        ppid=`expr $ppid + 10000`
                      7: fi
                      8: DISHPROC="127.0.0.1 $ppid"
                      9: export DISHPROC
                     10: if ( bind )
                     11: then
                     12:        echo -n
                     13: else
                     14:        exit 1
                     15: fi
                     16: moveto @
                     17: echo "Searching ROOT"
                     18: search -filter objectclass=DSA -nokey -seq dsas -nosize -nopart 
                     19: for i in `search -filter objectclass=quipunonleafobject -noname -seq x -nosize -nopart` 
                     20: do
                     21:        echo -n "Searching "
                     22:        moveto -seq x -nocheck $i -pwd
                     23:        search -filter objectclass=DSA -norel -seq dsas -nosize -nopart
                     24:        if ( search -filter objectclass=quipunonleafobject -nopart -noname -seq y -nosize > /tmp/dsalist 2>/dev/null )
                     25:        then
                     26:                for j in `cat /tmp/dsalist` 
                     27:                do 
                     28:                        echo -n "Searching "
                     29:                        moveto -seq y -nocheck $j -pwd
                     30:                        if (search -filter objectclass=quipuDSA -norel -subtree -seq dsas -nosize -nopart >/tmp/dsalist 2>/dev/null )
                     31:                        then
                     32:                                cat /tmp/dsalist
                     33:                        fi
                     34:                done
                     35:        fi
                     36: done
                     37: echo 
                     38: echo Summary...
                     39: squid -seq dsas
                     40: rm -f /tmp/dsalist
                     41: unbind

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.