tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Trying to configure an HP41000 printer with escape sequences in the text file
@ 2003-05-15 16:12 Daniel Clar
  2003-05-15 16:50 ` IPC Kernel Parameters Mike Fulce
  2003-05-16 12:49 ` UPDATE : Trying to configure an HP41000 printer with escape sequences in the text file Daniel Clar
  0 siblings, 2 replies; 7+ messages in thread
From: Daniel Clar @ 2003-05-15 16:12 UTC (permalink / raw)
  Cc: Daniel Clar

Hello Managers,

I'm have an application running on one of my Tru64 boxes which generates
text files to print with escape sequences at the beginning and at the end of
the files.

Till now the files were sent to a printer on an OpenVMS system where the
file was processed by DCPS.

I'm trying to avoid this transfer and to send the file directly to the
printer.

I've used printconfig and modified slightly the lines in the printcap and
I'm able to print the test and other text files.

But when I send one of my file with escape sequences I've only page with
squares.

Is there a way to process correctly these files ?

Thank you for your help.

Regards

Daniel





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

* IPC Kernel Parameters
  2003-05-15 16:12 Trying to configure an HP41000 printer with escape sequences in the text file Daniel Clar
@ 2003-05-15 16:50 ` Mike Fulce
  2003-05-15 19:44   ` SUMMARY: " Mike Fulce
  2003-05-16 12:49 ` UPDATE : Trying to configure an HP41000 printer with escape sequences in the text file Daniel Clar
  1 sibling, 1 reply; 7+ messages in thread
From: Mike Fulce @ 2003-05-15 16:50 UTC (permalink / raw)


What are the Tru64 equivalents for the following parameters:

SEMMNS
SEMMAP
SEMMNU
MSGMAP
MSGSSZ
MSGSEG

Issuing the command

sysconfig -q ipc

only shows values for the following

msg_max
msg_mnb
msg_mni
msg_tql
shm_max
shm_min
shm_mni
shm_seg
sem_mni
sem_msl
sem_opm
sem_ume
sem_vmx
sem_aem
max_kernel_ports
ssm_threshold
ssm_enable_core_dump
shm_allocate_striped
shm_enable_core_dump


______________________________________________________________________________
Mike Fulce                              Database Administrator II
OTR-Admin. Resources            University of Southern Mississippi
m.fulce@usm.edu                    Voice:(601) 266-6102 Fax:(601) 266-6755
310 Forrest County Hall            Box 5048, Hattiesburg, MS  39406 



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

* SUMMARY: IPC Kernel Parameters
  2003-05-15 16:50 ` IPC Kernel Parameters Mike Fulce
@ 2003-05-15 19:44   ` Mike Fulce
  2003-05-19 18:38     ` psrinfo Ed King
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Fulce @ 2003-05-15 19:44 UTC (permalink / raw)


It seems that there is no equivalent to these parameters in Tru64 5.1.

I was pointed to a very good reference on Kernel Parameters by 2 very 
helpful folks.

http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51_HTML/ARH9GBTE/TITLE.HTM

While both assumed I was working with Oracle, it's actually Bea Tuxedo.

At 11:50 AM 5/15/03 -0500, Mike Fulce wrote:
>What are the Tru64 equivalents for the following parameters:
>
>SEMMNS
>SEMMAP
>SEMMNU
>MSGMAP
>MSGSSZ
>MSGSEG
>
>Issuing the command
>
>sysconfig -q ipc
>
>only shows values for the following
>
>msg_max
>msg_mnb
>msg_mni
>msg_tql
>shm_max
>shm_min
>shm_mni
>shm_seg
>sem_mni
>sem_msl
>sem_opm
>sem_ume
>sem_vmx
>sem_aem
>max_kernel_ports
>ssm_threshold
>ssm_enable_core_dump
>shm_allocate_striped
>shm_enable_core_dump
>
>
>______________________________________________________________________________
>Mike Fulce                              Database Administrator II
>OTR-Admin. Resources            University of Southern Mississippi
>m.fulce@usm.edu                    Voice:(601) 266-6102 Fax:(601) 266-6755
>310 Forrest County Hall            Box 5048, Hattiesburg, MS  39406

______________________________________________________________________________
Mike Fulce                              Database Administrator II
OTR-Admin. Resources            University of Southern Mississippi
m.fulce@usm.edu                    Voice:(601) 266-6102 Fax:(601) 266-6755
310 Forrest County Hall            Box 5048, Hattiesburg, MS  39406 



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

* UPDATE : Trying to configure an HP41000 printer with escape sequences in the text file
  2003-05-15 16:12 Trying to configure an HP41000 printer with escape sequences in the text file Daniel Clar
  2003-05-15 16:50 ` IPC Kernel Parameters Mike Fulce
@ 2003-05-16 12:49 ` Daniel Clar
  2003-05-22 16:49   ` SUMMARY " Daniel Clar
  1 sibling, 1 reply; 7+ messages in thread
From: Daniel Clar @ 2003-05-16 12:49 UTC (permalink / raw)


The original posting was :
> 
> Hello Managers,
> 
> I'm have an application running on one of my Tru64 boxes which generates
> text files to print with escape sequences at the beginning and at the end
> of
> the files.
> 
> Till now the files were sent to a printer on an OpenVMS system where the
> file was processed by DCPS.
> 
> I'm trying to avoid this transfer and to send the file directly to the
> printer.
> 
> I've used printconfig and modified slightly the lines in the printcap and
> I'm able to print the test and other text files.
> 
> But when I send one of my file with escape sequences I've only page with
> squares.
> 
> Is there a way to process correctly these files ?
> 
> Thank you for your help.

Thank you to :

Davis, Alan [Davis@tessco.com]

Check out the PCF subsystem : man pcfof

Toni Harbaugh-Blackford [harbaugh@ncifcrf.gov]

There is a utility 'lpspr' that will do this.  But it is only part of the
LPS printer control
software package that *used* to be available from digital.  I don't know if
it is still available
from HP or not.

You can install the package and just put in fake entries for the printer.
You can't just
copy lpspr out of the installation package by itself, however, because lpspr
looks for
some of the printer configuration files that are placed in /etc by the
installation script.

'lpspr' is the ONLY program that I have found that will do what you want.

ur@minet.uni-jena.de

As I understand this, the LPD or the "queueing mechanics" cuts
off an ESC sequence a print job may have at the beginning.
I couldn't see this with network print server (via LPD) but
think this is a behaviour if the printer is connected to /dev/lp0
(with "default" settings). Without the horrible hack I couldn't
get all binaries to be printed. Event with no :if:, :of: and :xf:
printcap entry parameters at all the leading ESC didn't get through.
I thing there's a good reason for that - but my head is to small to
see this ;-)

-------------------------------------

I've looked at pcfof and it's working with an old ln17ps printer but it
doesn't recognize all the escape sequences.

So do I have to build by myself a hplj4100dtn_a4.pcf file or does it exist
somewhere?

Thank you

Daniel




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

* psrinfo
  2003-05-15 19:44   ` SUMMARY: " Mike Fulce
@ 2003-05-19 18:38     ` Ed King
  2003-05-19 19:11       ` SUMMARY: psrinfo Ed King
  0 siblings, 1 reply; 7+ messages in thread
From: Ed King @ 2003-05-19 18:38 UTC (permalink / raw)


We have two Alpha 2000 5/250,  one runs Tru64 4.0g, the other runs Tru64
5.1a

when I issue  psrinfo -v on the 4.0g machine,  it makes no mention of cpu
cache...

Status of processor 0 as of: 05/19/03 14:32:13
  Processor has been on-line since 04/15/2003 11:14:23
  The alpha EV5 (21164) processor operates at 250 MHz,
        and has an alpha internal floating point processor.


when I issue psrinfo -v on the 5.1a machine, it tells me that the cpu has
4Mb cache...

Status of processor 0 as of: 05/19/03 14:30:40
  Processor has been on-line since 10/14/2002 16:33:27
  The alpha EV5 (21164) processor operates at 250 MHz,
  has a cache size of 4194304 bytes,
  and has an alpha internal floating point processor.

Does the 4.0g version of psrinfo not report cpu cache size, or does that
machine really not have any cpu cache?

Is there some other tru64 4.0g command that I can use to determine cpu
cache?

Thank you,
Eddie




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

* SUMMARY: Re: psrinfo
  2003-05-19 18:38     ` psrinfo Ed King
@ 2003-05-19 19:11       ` Ed King
  0 siblings, 0 replies; 7+ messages in thread
From: Ed King @ 2003-05-19 19:11 UTC (permalink / raw)


thanks for the quick replies from Alan Rollow and Martin Opasia,

I looked in the the sys_check output on the 4.0g machine and see that the
cpu on that machine also has 4M cache


----- Original Message -----
From: Ed King <eking@exch.hamiltontn.gov>
To: <tru64-unix-managers@ornl.gov>
Sent: Monday, May 19, 2003 2:38 PM
Subject: psrinfo


> We have two Alpha 2000 5/250,  one runs Tru64 4.0g, the other runs Tru64
> 5.1a
>
> when I issue  psrinfo -v on the 4.0g machine,  it makes no mention of cpu
> cache...
>
> Status of processor 0 as of: 05/19/03 14:32:13
>   Processor has been on-line since 04/15/2003 11:14:23
>   The alpha EV5 (21164) processor operates at 250 MHz,
>         and has an alpha internal floating point processor.
>
>
> when I issue psrinfo -v on the 5.1a machine, it tells me that the cpu has
> 4Mb cache...
>
> Status of processor 0 as of: 05/19/03 14:30:40
>   Processor has been on-line since 10/14/2002 16:33:27
>   The alpha EV5 (21164) processor operates at 250 MHz,
>   has a cache size of 4194304 bytes,
>   and has an alpha internal floating point processor.
>
> Does the 4.0g version of psrinfo not report cpu cache size, or does that
> machine really not have any cpu cache?
>
> Is there some other tru64 4.0g command that I can use to determine cpu
> cache?
>
> Thank you,
> Eddie
>
>



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

* SUMMARY : Trying to configure an HP41000 printer with escape sequences in the text file
  2003-05-16 12:49 ` UPDATE : Trying to configure an HP41000 printer with escape sequences in the text file Daniel Clar
@ 2003-05-22 16:49   ` Daniel Clar
  0 siblings, 0 replies; 7+ messages in thread
From: Daniel Clar @ 2003-05-22 16:49 UTC (permalink / raw)


After the following update I've got several answers :

> 
> The original posting was :
> >
> > Hello Managers,
> >
> > I'm have an application running on one of my Tru64 boxes which generates
> > text files to print with escape sequences at the beginning and at the
> end
> > of
> > the files.
> >
> > Till now the files were sent to a printer on an OpenVMS system where the
> > file was processed by DCPS.
> >
> > I'm trying to avoid this transfer and to send the file directly to the
> > printer.
> >
> > I've used printconfig and modified slightly the lines in the printcap
> and
> > I'm able to print the test and other text files.
> >
> > But when I send one of my file with escape sequences I've only page with
> > squares.
> >
> > Is there a way to process correctly these files ?
> >
> > Thank you for your help.
> 
> Thank you to :
> 
> Davis, Alan [Davis@tessco.com]
> 
> Check out the PCF subsystem : man pcfof
> 
> Toni Harbaugh-Blackford [harbaugh@ncifcrf.gov]
> 
> There is a utility 'lpspr' that will do this.  But it is only part of the
> LPS printer control
> software package that *used* to be available from digital.  I don't know
> if
> it is still available
> from HP or not.
> 
> You can install the package and just put in fake entries for the printer.
> You can't just
> copy lpspr out of the installation package by itself, however, because
> lpspr
> looks for
> some of the printer configuration files that are placed in /etc by the
> installation script.
> 
> 'lpspr' is the ONLY program that I have found that will do what you want.
> 
> ur@minet.uni-jena.de
> 
> As I understand this, the LPD or the "queueing mechanics" cuts
> off an ESC sequence a print job may have at the beginning.
> I couldn't see this with network print server (via LPD) but
> think this is a behaviour if the printer is connected to /dev/lp0
> (with "default" settings). Without the horrible hack I couldn't
> get all binaries to be printed. Event with no :if:, :of: and :xf:
> printcap entry parameters at all the leading ESC didn't get through.
> I thing there's a good reason for that - but my head is to small to
> see this ;-)
> 
> -------------------------------------
> 
> I've looked at pcfof and it's working with an old ln17ps printer but it
> doesn't recognize all the escape sequences.
> 
> So do I have to build by myself a hplj4100dtn_a4.pcf file or does it exist
> somewhere?
> 
Davis, Alan [Davis@tessco.com]

The pcf files are in /usr/lbin/pcf. The template.pcf file is an example with
comments on each section. If you can find the esc sequences that you need,
you can create your own pcf file. The hplj4000tn_a4.pcf may be a good place
to start.

You might also call HP support and see if the genius' over there have made
up pcf files for all the HP printers, since they're all one big, happy
family now.

Peter.Stern@weizmann.ac.il

There are pcf files for:
ln17.pcf, ln17_a4.pcf, ln17ps.pcf, ln17ps_a4.pcf
hplj4000tn.pcf, hplj4000tn_a4.pcf (and since these understand Duplex
they should work as well for the hplj4000dtn.

I have these as part of my standard installation (4.0f) although I don't
know which subset they came from.  So if you have the pcf files in
/usr/lbin/pcf (mine are dated Apr 12 1999), they should be there.


And Ernie LaBonte [labonte@zk3.dec.com] who told me that it should work with
ppdof and help me a lot to succeed.

In fact some "old fashioned" escape sequences were understood by DCPS but no
more by ppdof. In putting in place the good PCL5 escape sequences, it's
running fine now.

Regards

Daniel




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

end of thread, other threads:[~2003-05-22 16:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-15 16:12 Trying to configure an HP41000 printer with escape sequences in the text file Daniel Clar
2003-05-15 16:50 ` IPC Kernel Parameters Mike Fulce
2003-05-15 19:44   ` SUMMARY: " Mike Fulce
2003-05-19 18:38     ` psrinfo Ed King
2003-05-19 19:11       ` SUMMARY: psrinfo Ed King
2003-05-16 12:49 ` UPDATE : Trying to configure an HP41000 printer with escape sequences in the text file Daniel Clar
2003-05-22 16:49   ` SUMMARY " Daniel Clar

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