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

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

if [ -f $PROFILE ]; then
source $PROFILE
fi

exec $MPUT_PATH/mput_wrap $@
