#!/bin/bash
# Wrapper for calling rshp with the right environement
# It loads the /etc/profile.d/cluster.sh for getting the right
# environnement before calling the real rshp

PROFILE=/etc/profile.d/cluster.sh
RSHP_PATH=/usr/bin

if [ -f $PROFILE ]; then 
	source $PROFILE; 
fi
exec $RSHP_PATH/rshp_wrap $@
