#!/bin/bash 
#
# Debugging log file, change from /dev/null if you like.
#
#logfile=/tmp/nov-print.log
logfile=/dev/null

if test -L $logfile ; then
	echo "$0: $logfile should not be a symbolic link." 1>&2
	exit 2
fi

#
# Protect the password
#
umask 0066
if ( >> $logfile ) 2> /dev/null ; then
	#
	# Some debugging help,
	# change the >> to > if you want to same space.
	#
	exec >> $logfile      2>&1
else
	rm -f   ${logfile}.$$
	exec  > ${logfile}.$$ 2>&1
fi

#
# Print out the used command line
#
echo   nprint $@

#
# Pass standard input to nprint
#
nprint ${1+"$@"}
