Re: printing postscript

NOTE: The difax mailing list is no longer active. The list archives are made available for historical reasons.


Harry Edmon <harry@xxxxxxxxxxxxxxxxxxxx> wrote:

I am using a modified version of a ppm routine called pcxtopbm piped to
pnmtops.  The postscript files sizes are 2-3 megabytes.  You can grab my
pcxtopbm.c file via anonymous ftp from ftp.atmos.washington.edu in pub.

Here's how we're doing it at niu.

Our pattern action file for those we want to print out looks like this:

DIFAX   ^(2052).*       EXEC    /disk2/wx_data/difax/convert_difax \1
DIFAX   ^(2053).*       EXEC    /disk2/wx_data/difax/convert_difax \1
DIFAX   ^(2054).*       EXEC    /disk2/wx_data/difax/convert_difax \1

convert_difax looks like this:

#!/bin/sh
#
# Script to print the DIFAX charts.
#
LD_LIBRARY_PATH=/opt/SUNWspro/lib:/usr/openwin/lib:/usr/local/lib:/usr/ucblib
export LD_LIBRARY_PATH
dt=`/bin/date -u +%y%m%d`
/usr/local/bin/g3topbm 
/disk2/wx_data/difax/$dt'_'$1.g3|/usr/local/bin/pnmtops|/bin/lp -s -d 
postscript1

Hope this helps someone!

Gilbert



  • 1995 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the difax archives: