COMMAND

    xwcreate, xwdestroy

SYSTEMS AFFECTED

    HP-UX

PROBLEM

------------------------------------------------------------------------------
#!/bin/ksh

if [ -z "$1" ]
then
  echo "try: `basename $0` filename [display]"
  echo "WARNING: FILENAME PROBABLY WON'T BE THERE AFTER YOU DO THIS!"
  echo "Display is optional, but you do need an xhost/authed display for this."
  exit
fi

if [ -n "$2" ]
then
  DISPLAY=$2
  export DISPLAY
fi

WMDIR=`dirname $1`
FILE=`basename $1`
export WMDIR

echo
echo "Before: ls -l $1 produces:"
ls -l $1

xwcreate $FILE
xwdestroy $FILE

echo
echo "After: ls -l $1 produces:"
ls -l $1
------------------------------------------------------------------------------