#!/usr/bin/ksh

#-------------------------------------------------
#will launch a script
#syntax: launch_script host script rsh_flag 
# $1 = cpu
# $2 = script
# $3 = rsh_flag
#-------------------------------------------------
hostname=$1
script=$2
rsh_flag=$3
sendcmd=`echo $script `
if test $rsh_flag -eq 1
	then sendcmd=`echo rsh $hostname $script`
fi

#-----------------------------------
#launch the script in the background
#-----------------------------------
$sendcmd & 
exit

