From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Daniel Clar Newsgroups: gmane.os.tru64.managers Subject: SUMMARY : Trying to configure an HP41000 printer with escape sequences in the text file Date: Thu, 22 May 2003 18:49:06 +0200 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <02e301c32082$0eea9dc0$4e78e4a0@supelec.fr> References: <005d01c31ba9$87c76300$4e78e4a0@supelec.fr> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1053622084 20575 80.91.224.249 (22 May 2003 16:48:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 22 May 2003 16:48:04 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu May 22 18:48:00 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19ItEW-0005Kd-00 for ; Thu, 22 May 2003 18:48:00 +0200 Original-Received: (qmail 6174 invoked by uid 5); 22 May 2003 16:49:45 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 6165 invoked by uid 49493); 22 May 2003 16:49:45 -0000 Original-Received: from Daniel.Clar@supelec.fr by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-3.5/5.0):. Processed in 0.540845 secs); 22 May 2003 16:49:45 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 22 May 2003 16:49:45 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HFA00B9ZS2RBU@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 22 May 2003 12:49:42 -0400 (EDT) Original-Received: from supelec.supelec.fr (supelec.supelec.fr [160.228.120.192]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HFA00AFMS2EP3@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 22 May 2003 12:49:28 -0400 (EDT) Original-Received: from cridchp (localhost [127.0.0.1]) by supelec.supelec.fr (8.11.6p2/jtpda-5.3.1) with ESMTP id h4MGnOJ168931 ; Thu, 22 May 2003 18:49:24 +0200 (MEST) In-reply-to: <005d01c31ba9$87c76300$4e78e4a0@supelec.fr> Original-To: 'Daniel Clar' , tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailer: Microsoft Outlook, Build 10.0.4510 Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Xref: main.gmane.org gmane.os.tru64.managers:4316 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4316 After the following update I've got several answers : >=20 > 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. >=20 > Thank you to : >=20 > Davis, Alan [Davis@tessco.com] >=20 > Check out the PCF subsystem : man pcfof >=20 > Toni Harbaugh-Blackford [harbaugh@ncifcrf.gov] >=20 > 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. >=20 > 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. >=20 > 'lpspr' is the ONLY program that I have found that will do what you = want. >=20 > ur@minet.uni-jena.de >=20 > 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 ;-) >=20 > ------------------------------------- >=20 > I've looked at pcfof and it's working with an old ln17ps printer but = it > doesn't recognize all the escape sequences. >=20 > So do I have to build by myself a hplj4100dtn_a4.pcf file or does it = exist > somewhere? >=20 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