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: UPDATE : Trying to configure an HP41000 printer with escape sequences in the text file Date: Fri, 16 May 2003 14:49:03 +0200 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <005d01c31ba9$87c76300$4e78e4a0@supelec.fr> References: <00d701c31afc$be5a8530$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 1053089413 19943 80.91.224.249 (16 May 2003 12:50:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 16 May 2003 12:50:13 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri May 16 14:50:04 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 19Gech-00050C-00 for ; Fri, 16 May 2003 14:47:43 +0200 Original-Received: (qmail 30012 invoked by uid 5); 16 May 2003 12:49:18 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 29986 invoked by uid 49493); 16 May 2003 12:49:17 -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 2.377283 secs); 16 May 2003 12:49:17 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 16 May 2003 12:49:14 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HEZ00IAWCY1S5@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 16 May 2003 08:49:14 -0400 (EDT) Original-Received: from supelec.supelec.fr (supelec.supelec.fr [160.228.120.192]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HEZ00M19CXVQ6@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 16 May 2003 08:49:08 -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 h4GCn4V341732 ; Fri, 16 May 2003 14:49:05 +0200 (MEST) In-reply-to: <00d701c31afc$be5a8530$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:4258 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4258 The original posting was : >=20 > Hello Managers, >=20 > 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. >=20 > Till now the files were sent to a printer on an OpenVMS system where = the > file was processed by DCPS. >=20 > I'm trying to avoid this transfer and to send the file directly to the > printer. >=20 > I've used printconfig and modified slightly the lines in the printcap = and > I'm able to print the test and other text files. >=20 > But when I send one of my file with escape sequences I've only page = with > squares. >=20 > Is there a way to process correctly these files ? >=20 > 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