/usr/bin/paw is in paw-common 1:2.14.04.dfsg.2-9.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | #!/bin/sh
# **********************************************************************
# * PAW SHELL 1.05 *
# *@(#) paw driver running the proper paw module
# *@(#) $Header: /afs/cern.ch/asis/share/cern/CVS/scripts/paw,v 1.5 1995/02/07 09:54:06 cernlib Exp $
# * *
# * Shell driver to the different versions of PAW *
# * *
# * Author: M.Marquina 90/10/06 *
# * Mods Date Commments *
# * MARQUINA 90/11/30 Add host option, pass on non-filtered options *
# * 91/08/15 Access pawGKS directly from GKS_ROOT *
# * 91/12/12 Correct local SUN host *
# * 93/03/26 Add -display option, do not override DISPLAY *
# * clean up empty paw.metafile *
# * G.Folger 93/11/02 pawGKS is now in CERN_ROOT/$ver/gksbin *
# * following mods are in the RCS log
# * *
# **********************************************************************
SHOPT="d:h:v:"
#SEQ,GETOPTD.
[ "`uname -s`" = "DomainOS" ] && drv="GKS" || drv="X11"
if [ "$drv" = X11 ] ; then drv_set=false ; fi
[ -z "$CERN" ] && CERN="/usr"
[ -z "$CERN_LEVEL" ] && ver="" || ver="$CERN_LEVEL"
while [ $# -gt 0 ]
do case $1 in
-d) drv=$2 ; drv_set=true ; shift ;;
-h) hst=$2 ; shift ;;
-display) hst=$2 ; shift ;;
-v) ver=$2 ; shift ;;
--) shift ; break ;;
*) break ;;
esac
shift
done
if [ "$drv_set" = false ] && ! [ -e "$CERN/$ver/bin/pawX11" ] ; then
if [ -e "$CERN/$ver/bin/paw++" ] ; then
drv="++" # use paw++ if no pawX11
fi
fi
GDIR=$CERN/$ver/bin
if [ "$drv" = "GKS" ] ; then
[ -z "$GKS_ROOT" ] && GKS_ROOT="$CERN/gks/$ver"
[ -z "$GKS" ] && . $CERN/gks/$ver/mgr/gksstart.sh
# inlib $GKS_INLIB
GDIR=$CERN/$ver/gksbin
fi
if [ \( "$drv" = "X11" -o "$drv" = "++" \) -a -n "$hst" ] ; then
nw=`echo $hst | awk -F: '{ print NF }'`
[ $nw -eq 1 ] && hst="$hst:0"
DISPLAY="$hst" ; export DISPLAY
fi
if [ -n "$ver" ] ; then
echo
echo " Calling $ver version of paw$drv"
echo
fi
if [ ! -x "$GDIR/paw$drv" ] ; then
echo " Error: PAW executable $GDIR/paw${drv} does not exist!"
exit 1
fi
"$GDIR/paw$drv" "$@"
[ ! -s paw.metafile ] && rm -f paw.metafile
[ ! -s PAW.METAFILE ] && rm -f PAW.METAFILE
# clean up comis temporary working directories if empty
[ "`(echo /tmp/comis*) 2> /dev/null`" = '/tmp/comis*' ] || \
rmdir /tmp/comis* > /dev/null 2>&1 || true
[ "`(echo "$TMPDIR"/comis*) 2> /dev/null`" = "$TMPDIR"/'comis*' ] || \
rmdir "$TMPDIR"/comis* > /dev/null 2>&1 || true
|