tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Printing problem
@ 1997-07-23 12:18 david.w.chapman
  0 siblings, 0 replies; 4+ messages in thread
From: david.w.chapman @ 1997-07-23 12:18 UTC (permalink / raw)
  To: tru64-unix-managers

What I ended up doing was to use the Emulex software to set up
six different queues (3 portrait and 3 landscape) by changing
the prefix control string (pcs) in each queue:

This will print portrait, 10 characters per inch, 6 lines per inch

# ** |w_st2| entry maintained by Emulex Installation Program **
# server type =NETQue
# printer interface type =centronics
# server physical port number =1
# transmit mode =Text
w_st2|w_st2|Emulex network printer on port 1:\
        :lp=/dev/w_st2:\
        :sd=/usr/spool/w_st2:\
        :of=/adm/emlx/bin/rprint:\
        :mx#0:\
        :pw#0:\
        :emlx_n=130.110.41.41:\
        :emlx_pcs=\033E\033&l0o6D\033(10U\033&k0S\012:\
        :emlx_scs=\033E\012:\
        :emlx_p=2501:

Thanks for the two responses that I got:

From belonis @ dirac.phys.washington.edu:

No local processing is possible for a remote printer.
Instead you have to fake a local printer (output device /dev/null)
and in an 'if=' (or 'of=' ?) you can process it as you like
and then lpr it to the real remote queue.

Belonis

From Martin.Scott @ vw.com:

*David,

*I got this from DEC.  I have not tried it, my customer decided
to do it a different way.  I hope helps.

*Martin Scott

--------------------------------------------------------------------------------
Scott, Martin
From:*pitt@csc32.enet.dec.com%smtp [pitt@csc32.enet.dec.com%smtp at x400po]
Sent:*Friday, June 27, 1997 10:54 AM
To:*TSC::martin.scott@dcuh029.dcu.ps.net%smtp
Cc:*PITT@csc.cxo.dec.com%smtp
Subject:*Pre-Process print job to remote printer

Example of how to *pre-process* a print job through a printcap entry.

Question:
How can you send *lpr* switches to a remote printer in Digital UNIX (OSF)?  For
instance, how can you print landscape orientation on a remote printer? Answer:
When printing to a remote printer, most printcap parameters are ignored by lpr.
Also, for remote printers, very few lpr command line switches are recognized.
The printcap entry for selecting landscape orientation (setting *pw* to
something greater than 80), and the lpr *-w* switch are ignored for remote
printers.  (Remote printers are those whose printcap entries contain *rm* and
*rp*.) To resolve this issue, create a *pass-through* printcap entry that first
changes the orientation to landscape and then sends the print job to the
original remote entry.  As an example, assume your remote printer entry looks
like this. lp5|5|dot matrix printer:\ lf=/usr/adm/lp5err:\ lp=:\
rm=tom.digital.com:\      (or rm=printername and rp=lp2:\
rp=text or postscript) sd=/usr/spool/lpd5:

Create another printcap entry that looks like this.
lp8|8|pass-through entry:\
lp=/dev/null:\
mx#0:\
of=/usr/lbin/passtolp5:\
sd=/usr/spool/lpd8:

Then create a file called /usr/lbin/passtolp5 that looks like this.
Make sure the mode of this file is 755!
--------------- cut here -------------
#!/bin/csh -f
/bin/cat | /usr/lbin/<filtername> -w132 | lpr -P5 --------------- cut here
------------- Note: The <filtername> must be one that supports going to
landscape orientation when the page width is set to something bigger that 80.
Now, to print landscape orientation to printer lp5, do the following: # lpr -P8
filename If you want to print portrait orientaion to printer lp5, do the
following: # lpr -P5 filename

Original Question:

> I have a HP LaserJet III printer connected to our network
> with a NETQue printer server (Emulex Corp.).
> A user wants to be able to change from portrait to landscape
> and/or 66 lines per page to 88 lines per page using lpr command
> line options.
> Is this possible for a remote printer?
> Here is the printcap entry:
> (As configured by Emulex software)
>
> # ** |w_st2| entry maintained by Emulex Installation Program **
> # server type =NETQue
> # printer interface type =centronics
> # server physical port number =1
> # transmit mode =Text
> w_st2|w_st2|Emulex network printer on port 1:\
>         :lp=/dev/w_st2:\
>         :sd=/usr/spool/w_st2:\
>         :of=/adm/emlx/bin/rprint:\
>         :mx#0:\
>         :pw#0:\
>         :emlx_n=130.110.41.41:\
>         :emlx_p=2501:
>
> I'm still at Digital UNIX V3.0
>
> Thanks in advance!
>
> Dave Chapman
> david.w.chapman@ussev.mail.abb.com

^ permalink raw reply	[flat|nested] 4+ messages in thread
* SUMMARY: Printing problem
@ 2001-09-17 15:05 Skulley, William
  0 siblings, 0 replies; 4+ messages in thread
From: Skulley, William @ 2001-09-17 15:05 UTC (permalink / raw)
  To: tru64-unix-managers

Turned out the issue was a bad TCP checksum which caused the printer to
ignore that packet.  After attempting several times the server would call
the job timed out and resubmit.  After opening a support call with Compaq
they were very helpful in finding the source of the problem and providing a
patch to resolve it.

Thanks
Bill Skulley
DynCorp I&ET

> -----Original Message-----
> From:	Skulley, William 
> Sent:	Friday, August 10, 2001 10:08 AM
> To:	'tru64-unix-managers@ornl.gov'
> Subject:	Printing problem
> 
> Greetings
> 
> We are running Tru64 5.0a on an ES40.  We are having problems printing a
> large file (~32MB).  It will print partway through and then restart
> itself.  An error message is written to the lpr.log when the job restarts:
> 
> Aug 10 09:19:26 pssrv4 lpd[15419]: ERROR -- write_chars: write() failed,
> error: Broken pipe
> 
> I've searched the archives for infomation on broken pipes and it is quite
> sparse.  What should I be looking for as a possible cause of this problem?
> 
> 
> Thanks
> 
> Bill Skulley
> DynCorp I&ET

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: SUMMARY: Printing problem
@ 1995-02-09 23:41 warrens
  0 siblings, 0 replies; 4+ messages in thread
From: warrens @ 1995-02-09 23:41 UTC (permalink / raw)
  To: tru64-unix-managers

Your message dated: Thu, 02 Feb 95 18:00:11
>
>     Dear Netland,
>     
>     I recently posted that I was unable to print through the parallel port 
>     on my 2100 running osf/1.  I had several helpful responses, but none 
>     of them panned out.  The answer was::You can't print using the lpd 
>     daemon on osf/1 because it isn't supported.  This is contrary to what 
>     our dec rep had sold us on doing, but the dec engineer usually knows 
>     more than the salesperson.  The solution was to print using a serial 
>     port option and to naturally use a null modem, which I had forgotten 
>     during an earlier test (shame shame).
>     
>     Thanks for all of the help.  If I could just find the register 
>     settings for my Decmodem v32.
>     
>     Keith
>


	Hey Keith,

	I was just having the same problem, and found your
	mail.  I don't understand how you would use a null modem
	to print to a parallel printer.  Have you had any luck ?


	Warren.

^ permalink raw reply	[flat|nested] 4+ messages in thread
* SUMMARY:  Printing problem
@ 1995-02-02 18:00 keith chiles
  0 siblings, 0 replies; 4+ messages in thread
From: keith chiles @ 1995-02-02 18:00 UTC (permalink / raw)
  To: tru64-unix-managers


     Dear Netland,
     
     I recently posted that I was unable to print through the parallel port 
     on my 2100 running osf/1.  I had several helpful responses, but none 
     of them panned out.  The answer was::You can't print using the lpd 
     daemon on osf/1 because it isn't supported.  This is contrary to what 
     our dec rep had sold us on doing, but the dec engineer usually knows 
     more than the salesperson.  The solution was to print using a serial 
     port option and to naturally use a null modem, which I had forgotten 
     during an earlier test (shame shame).
     
     Thanks for all of the help.  If I could just find the register 
     settings for my Decmodem v32.
     
     Keith

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-09-17 15:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-07-23 12:18 SUMMARY: Printing problem david.w.chapman
  -- strict thread matches above, loose matches on Subject: below --
2001-09-17 15:05 Skulley, William
1995-02-09 23:41 warrens
1995-02-02 18:00 keith chiles

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