tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: George Gallen <ggallen () slackinc ! com>
To: tru64-unix-managers
Subject: compressing print jobs
Date: Tue, 14 Mar 2000 23:25:43 +0000	[thread overview]
Message-ID: <96079341819526.tru64-unix-managers.marc@archive.invalid> (raw)

I'm trying to compress print jobs sent to a remote printer

on the local side, I'm using: "cat - | /usr/mbin/lf2crlf | compress | lp
-dxxxx" (printer driver for DBMS)
   which first converts lf's to crlf's (for an HP) then compresses it and
sends it to the remote printer
   

on the remote side, in the printcap:
   I changed lp=/tmp/testfile   (temporarily so, I could see the data and
not waste paper)

   I have tried setting if=/usr/bin/uncompress:\    (yes, that where the
uncompress binary is)
   which only gives me the trailing FF, the data gets lost

   I have tried setting of=/usr/bin/uncompress:\  (which yielded nothing)
   and setting both if and of to /usr/bin/uncompress:\ (also yielded
nothing)

   If I eliminate the if and of, then manually send the file /tmp/testfile
through uncompress I see
   data correctly (aside from the FF added to end of the printjob which gets
uncompressed
   incorrectly (since it wasn't compressed to start with)).


OK....am I using these filters incorrectly? How can I get rid of that
trailing FF (I can easily
add it to the end prior to being compressed)? or is there a much easier way
to compress
a print job?

The main reason is we have been sending some very large print jobs (over
100meg) and the
remote site is connected via a SLIP 31k modem, aside from the transfer time
savings, we
also have been seeing the remote side, truncating the print job because of
file size (not
sure why, might be available free space is insufficient). Since these jobs
are mostly plain
text, compressing them should bring the size down to about 15 or 20 megs at
worst.

no. changing the connection is not an option, and I can't up the speed of
the modems
since analog can only send at 31k max (even for the 56k modems).

compression seems to be the only way to do what I need.

George Gallen
ggallen@slackinc.com


George Gallen
Senior Programmer/Analyst
Accounting/Data Division
ggallen@slackinc.com
ph:856.848.1000 Ext 220

SLACK Incorporated - An innovative information, education and management
company
http://www.slackinc.com

                 reply	other threads:[~2000-03-14 23:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox