Plotting (fwd)

Clive Jarman (cnj@bruker.com)
Wed, 12 Jan 94 16:30:51 EST

Message-Id: <9401112119.AA09283@bruker.com>
Subject: Plotting
To: nancy-w@molbio.cbs.umn.edu (Nancy Wilson)
Date: Tue, 11 Jan 94 16:19:35 EST
Cc: cnj (Clive Jarman)
In-Reply-To: <9401111829.AA03105@molbio.cbs.umn.edu>; from "Nancy Wilson" at Jan 11, 94 12:29 pm
X-Mailer: ELM [version 2.3 PL0]

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 
=================================================================