#!/bin/bash
# runpstnode
# James S Perrin (MVC)

# This script can be used to indirectly launch pstnodes on remote machines. The
# script is useful if for some reason environment variables aren't set correctly
# by remote command execution. The current configuration assumes only the
# pstnodes have been installed on the remote machines.

# These variables may need to be edited
export PST_ROOT=/usr/local/pstnode
export MPICH_BASE=/usr/local/mpich
export RSHCOMMAND=ssh
export MACHINE=linux
export P4_GLOBMEMSIZE=33554432

# You shouldn't need to edit anything below this line
export PATH=$PATH:$MPICH_BASE/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MPICH_BASE/lib:$PST_ROOT/lib/$MACHINE 
export PATH=$PATH:$PST_ROOT/bin/$MACHINE
export XP_LICENSE_FILE=$PST_ROOT/licence.dat
export LANG=C
#echo $@
$PST_ROOT/bin/$MACHINE/pstnode $@
