Dear Nancy
Here is the information you need to print HPGL files on the printers
attached to your spectrometers. The reason it does not work is that
the printer interface file that UXNMR sets up on your system is a
binary file that works cooperatively with UXNMR. You need to have UXNMR
running to use this interface file, and it only works with UXNMR.
In order to print binary files (HPGL) outside of UXNMR you need to
install a new printer interface file on your Aspect computer. I have
included this interface file at the end of this message.
Extract everything between the ###### lines into a file called hpplot
in the /usr/spool/lp/model directory on the Aspect. Become root and then
give this file the same permissions and owner as the other files in this
directory. Now type in the following commands in sequence:
/usr/lib/lpshut
/usr/lib/lpadmin -phpplot -v/dev/tty02 -mhpplot
/usr/lib/accept hpplot
/usr/bin/enable hpplot
/usr/lib/lpsched
You should replace the -v/dev/tty02 option to the lpadmin command with
whatever device your printer is attached to. tty02 is the default.
When you want to plot an HPGL file specify
cat <name_of_file| rsh <Aspectlp -dhpplot -ohpgl
where <Aspectis the name for the Aspect computer in your /etc/hosts
file.
The /usr/spool/lp/model/hpplot file follows:
########################################################################
# by Christoph Koeppen & Clive Jarman #
# (C) 1993 by Bruker Instruments, Inc. #
#======================================================================#
# installation of plot device named "hpplot": #
########################################################################
NCOPIES="$4"
MODE="$5"
shift; shift; shift; shift; shift
FILES="$*"
I=1
while [ $I -le $NCOPIES ]
do
for FILE in $FILES
do
cat "$FILE" 2>&1
done
I=`expr $I + 1`
done
exit 0
#######################################################################
Best wishes!
Clive
-- ================================================================== ... ... Clive Nicholas Jarman Ph.D . . . . Software Support Specialist . * . . Bruker Instruments, Inc. . . . Billerica, MA 01821, USA . . . . . BRUKER . (508) 667-9580 Ext. 231, 233 Phone . . . . (508) 663-9177 FAX . . . cnj@bruker.com e-mail . * . . software@bruker.com e-mail ... ... support@bruker.com e-mail =================================================================