[235] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Formatted printing to a NT printer

daemon@ATHENA.MIT.EDU (Robert Hart)
Mon Oct 21 18:43:29 1996

Date: Mon, 21 Oct 1996 11:33:08 +1000 (EST)
From: Robert Hart <hartr@interweft.com.au>
Reply-To: Robert Hart <iweft@ipax.com.au>
To: Red Hat <redhat-list@redhat.com>
Resent-From: redhat-list@redhat.com

Hi

I have an HP DJ850C on WIndows NT 4, set up so I can print to it using 
the NT LPD service. I can print ASCII text to is just great.

Now, I want to be able to print formatted text to it from my Red Hat box.

I set up a local queue using the DJ550C in the printtool and then tried 
modifying the entry to read...

lp|dj:\
        :sd=/var/spool/lpd/hp850c:\
        :mx#0:\
        :rm=hwin.interweft.com.au:\
        :rp=850C:\
        :if=/var/spool/lpd/hp850c/filter:\
        :sh:

The filter is

#!/bin/sh

DEVICE=djet500c
RESOLUTION=300x300
PAPERSIZE=a4
SENDEOF=

nenscript -TUS -ZB -p- |
if [ "$DEVICE" = "PostScript" ]; then
        cat -
else
        gs -q -sDEVICE=$DEVICE \
                -r$RESOLUTION \
                -sPAPERSIZE=$PAPERSIZE \
                -dNOPAUSE \
                -dSAFER \
                -sOutputFile=- -
fi

if [ "$SENDEOF" != "" ]; then
        printf "\004"
fi

exit 0


However - this doesn't give me formatted printing, just ASCII 
(postscript) text.

Can anyone tell me how to set this up please - using standard Red Hat 3 
installed rpm's? I am waiting for my Red Hat 4 CDs so can't use later 
rpm's!

Many thanks.

Robert Hart                                  iweft@ipax.com.au
Voice: +61 (0)3 9735 3586
InterWeft, 35 Summit Road, Lilydale, Victoria 3140, Australia
        IT, data and voice networking Consultancy
        Strategic IT business planning
        Internet planning, implementation, security and configuration


--
  PLEASE read the Red Hat FAQ, Tips, HOWTO and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-HOWTO 
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post