#!/bin/sh
PSADMINDIR=$1
domain=$2
cmd=$3
LD_LIBRARY_PATH=$PSADMINDIR:/lib:/usr/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH PSADMINDIR PATH
PATH=$PSADMINDIR:/bin:$PATH
psadmin -c tmadmin -d $domain $cmd 
