[Bioclusters] running interpro at all

Michael James Michael.James at csiro.au
Tue Sep 5 00:06:20 EDT 2006


Before tackling interpro over sge6 I tried a single host install.

When interpro sets itself up it creates a file in  conf/localenv.sh
When a job is submitted this becomes <jobname>.dsub

It tries unsuccessfully to use a local command instead of rsh
 when we would be rsh-ing back the the same host.
To fix this bug and some limitations, change the file to:


#!/bin/sh
rhost=[%host.exec]
ihost=`hostname`
echo "[%toolexitcode]"

case $rhost in
    ''|localhost|$ihost*)
            [%cmd] ;;
    *)
            rsh $rhost "[%cmd]";;
esac
exit 0


Explanation:
Without a dollars sign on  "ihost"  it will always use rsh.
If you make the test string      case $rhost in   ''|localhost|$ihost*)
 it allows   host.exec   to be empty or localhost.
This allows a non-host-specific install,
 so you can just duplicate it across your cluster
 without having to run the install separately for each node.

michaelj

-- 
Michael James                         michael.james at csiro.au
System Administrator                    voice:  02 6246 5040
CSIRO Bioinformatics Facility             fax:  02 6246 5166

No matter how much you pay for software,
 you always get less than you hoped.
Unless you pay nothing, then you get more.


More information about the Bioclusters mailing list