running interpro at all

Michael James <[email protected]>
Newsgroups gmane.science.biology.informatics.clusters
Message-ID <[email protected]>
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                         [email protected]
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.