#! /bin/sh
# for lib4th 6/2000 by h-peter recktenwald <phpr@snafu.de>
# display a job's open files, dft is <f8> and user <hp>

[ -n "${1}" ]&&{ c=" -c ${1}";shift; }||c=" -c f8"
[ -n "${1}" ]&&u=${1}||u=hp

echo U:${u} C:${c}
/usr/sbin/lsof -a -b -u ${u} ${c} 2>/dev/null
