Re: Banging out of MENUS
Posted in 1993
Here is something that should do what you want. It allows the user to run a 4ge or 4gi program, or a command listed in the infxcommands file. ############################################################################## : # /local/bin/infxsh - Rob Minter # Check if Program is an Informix Program # If it is, run and return if [ "`basename $1 .4ge`" != "$1" -o "`basename $1`" = "fglgo" ] ; then $* exit 0 fi PROG=$1 # Check command list to see if accesible OK=`cat /local/bin/infxcommands | grep ${PROG}` if [ "$OK" != "" ] ; then $* exit 0 fi exit 1 ############################################################################## Hope this helps, Robert Minter |Data Systems Support| \\\\\\_/// Programmer, Software Development | Orange, CA | ( _ _ ) internet: rob@dssmktg.com | Tel: 714.771.0454 | (| ^ |) bangpath: uunet.uu.net!dssmktg!rob| Fax: 714.771.3028 | \\`-'/ I used to not know, now I know I don't know. \\_/