#!/usr/bin/ksh

#------------------------------------------------------------
#creates a new spmbatchlicense
#syntax: update_batchlicens batchdir
#returns the name of the licensfiile
#------------------------------------------------------------ 
#--------------------------------
#set environment variables
#--------------------------------
. $WFU_PATH/global.site.ksh
batchdir=$1

#---------------------------------------------------
#get a unique shell number
#and create a licensefile containing the licensename
#we will empty it later
#----------------------------------------------------
lnum=`echo $$`
licensefile=$batchdir/spmbatchlicense$lnum
#-------------------------
#now empty the licensefile
#-------------------------
echo " " > $licensefile
echo $licensefile
exit


