#!/bin/sh
[ `echo $1|wc -c` -lt 2 ] && exit
wildcard=`echo "$1"|grep "*"`      #grep for an *

MS_DIR=`grep MS_DIR= /usr/bin/ustation|cut -c9-`
. $MS_DIR/cfg/configure.dat
. $MS_DIR/cfg/igesconf.dat

MS_INITAPPS=igesout
export MS_INITAPPS

[ -n "$wildcard" ] && $MS_DIR/ustation32 -ii$1 && exit

if [ -n "$2" ]
 then
  [ `echo "$2"|grep "-"` ]&&d2="$2"||d2="-io""$2"
fi
d3="$3"
d4="$4"
#$MS_DIR/ustation32 -ii$1 $d2 $d3 $d4
echo $MS_DIR/ustation32 -ii$1 $d2 $d3 $d4
