#!/bin/sh #author: Chris Sincock #This software is provided as-is and is not guaranteed to be free of defects. Use it only at your own risk. title="$*" prog="$1"; shift; if [ "$prog" = "exec-and-wait" ] ; then title="$*" fi geom="" if [ ! -z "$XTERM_GEOMETRY" ] ; then geom="-geometry $XTERM_GEOMETRY" fi options="" if [ ! -z "$XTERM_OPTIONS" ] ; then options="$XTERM_OPTIONS" fi exec xterm $geom -title "$title" $options -e "$prog" "$@" &