From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Shaun.Racine@intier.com Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Print to 2 queues at once Date: Fri, 01 Aug 2003 10:42:51 +0000 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1059734675 9456 80.91.224.249 (1 Aug 2003 10:44:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 1 Aug 2003 10:44:35 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Aug 01 12:44:34 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19iXOf-0002SG-00 for ; Fri, 01 Aug 2003 12:44:29 +0200 Original-Received: (qmail 24021 invoked by uid 5); 1 Aug 2003 10:44:33 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 24012 invoked by uid 49493); 1 Aug 2003 10:44:33 -0000 Original-Received: from Shaun.Racine@intier.com by sws1 by uid 49491 with qmail-scanner-1.16 (clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(0.8/5.0):. Processed in 0.431562 secs); 01 Aug 2003 10:44:33 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 1 Aug 2003 10:44:33 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HIX008HOSI8E3@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 01 Aug 2003 06:44:32 -0400 (EDT) Original-Received: from mail.magna-europa.com (mail.magna-europa.com [212.184.111.38]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HIX008GVSI2YC@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 01 Aug 2003 06:44:27 -0400 (EDT) Original-Received: from mail.MIS.Magna-Europa.com ([172.28.32.9] verified) by mail.magna-europa.com (CommuniGate Pro SMTP 4.0.1) with ESMTP id 19164178 for tru64-unix-managers@ornl.gov; Fri, 01 Aug 2003 12:33:10 +0200 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Lotus Notes Release 5.0.11 July 24, 2002 X-MIMETrack: Serialize by Router on MISGROUP01DS/SVR/MISGroup(Release 5.0.4 |June 8, 2000) at 08/01/2003 11:42:56 AM Xref: main.gmane.org gmane.os.tru64.managers:5013 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:5013 Thanks to Lawrie Smith. No answer for my problem, but included response if it helps anyone else= . I cannot change the application, I wanted to know if Tru64 could duplicat= e the prints for me. Original Question: ES40, Tru64 v5.1A, patch kit 1. HP Laserjet 4100 with internal Jetdirect card. Our application prints to a printer via LPD, which we suspect of giving= us a problem. Is there a way to set up a print queue in Unix so that it prints to 2 printers from one print queue? We want to compare the output from both= . More info: When we configure our printers and queues, we edit the prin= tcap file directly and manually create spool directories and so on. We do n= ot use lprsetup or other helpful utility. Here is the section in printcap; mm_hp4|lp35|mm_hp4:\ :lp=3D:\ :rm=3DMM_HP4:\ :rp=3Dtext:\ :lf=3D/usr/spool/lpd/mm_hp4.log:\ :sd=3D/usr/spool/lpd/mm_hp4: Reply from: Lawrie Smith I would set up a wrapper script to take the same command line arguments= as lpr And call the script, something like #! /usr/bin/ksh #######################################################################= ### # A quick and dirty wrapper for printing # # No parameter checking occurs in this version. # Only errors are logged as the lpd will log successful printing # # Lawrie Smith - (WM) Technical services - December 2001 #######################################################################= ### USAGE=3D"usage: $0 orientation printer document" # The script takes three parameters if (($# =3D=3D 0)) then print "" print "You must specify between 2 or 3 command line arguments"= print "" print "If two arguments are given they are assumed to be" print "printer and document (including full path)" print "" print "If three arguments are given they are assumed to be" print "orientation printer and document (including full path)" print "" print "EXAMPLE: JupiterP portrait shfcomp3 /app/application/document" print "NB: No parameter checking is performed" print "" print "$USAGE" else case $# in 2) cat $2 | tr '#' '=A3' | lpr -P$1 ;; 3) cat $3 | tr '#' '=A3' | lpr -O$1 -P$2 ;; *) ERROR=3D"$LOGNAME: Incorrect number of parameters `d= ate`" print $ERROR >> JupiterP.err ;; esac fi =