<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: multiple copies on line printer in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-copies-on-line-printer/m-p/4909888#M405933</link>
    <description>Hi Arun&lt;BR /&gt;&lt;BR /&gt;I suggest using Branded Print servers since they have more buffer size and thus avoid loss of data and control bytes.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Mahesh</description>
    <pubDate>Thu, 30 Jun 2005 04:32:25 GMT</pubDate>
    <dc:creator>Mahesh Kumar Malik</dc:creator>
    <dc:date>2005-06-30T04:32:25Z</dc:date>
    <item>
      <title>multiple copies on line printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-copies-on-line-printer/m-p/4909886#M405931</link>
      <description>Hi&lt;BR /&gt;I have configured a non-hp line printer (PRINTRONIX P500) on 10.2 o/s using SAM as a remote printer. It works fine except for the lp -n command which is used for mulitiple copies. When executed, lp -n will print a single copy only. If configured as a local printer lp -n will print multiple copies. The printer is configured as a network printer by attaching a pocket sized print server. Any clues to resolve the issue??</description>
      <pubDate>Thu, 30 Jun 2005 01:20:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-copies-on-line-printer/m-p/4909886#M405931</guid>
      <dc:creator>ARUN_19</dc:creator>
      <dc:date>2005-06-30T01:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: multiple copies on line printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-copies-on-line-printer/m-p/4909887#M405932</link>
      <description>hi arun&lt;BR /&gt;&lt;BR /&gt;HP-UX does not support this in the rmodel file,but the following work-around will allow you to have this functionality.&lt;BR /&gt;&lt;BR /&gt;Important: This work-around is not a supported by HP.&lt;BR /&gt;&lt;BR /&gt;     1) Ensure you have the latest rlpdaemon patch&lt;BR /&gt;        installed ( [PHCO_16106/PACHRDME/English] ).&lt;BR /&gt;&lt;BR /&gt;     2) Ensure that the following files have their permissions set to 04555:&lt;BR /&gt;&lt;BR /&gt;        /usr/sbin/rlpstat&lt;BR /&gt;        /usr/sbin/rlp&lt;BR /&gt;        /usr/sbin/rlpdaemon&lt;BR /&gt;&lt;BR /&gt;     3) Add the remote printer in the normal fashion using SAM or lpadmin.&lt;BR /&gt;&lt;BR /&gt;     4) cd /etc/lp/interface and verify that&lt;BR /&gt;        the new printer has been added.&lt;BR /&gt;&lt;BR /&gt;     5) Copy the name of the printer to a backup name,&lt;BR /&gt;        e.g: cp remprint remprint.old&lt;BR /&gt;&lt;BR /&gt;     6) Edit the printer file and at the bottom of the file you will see:&lt;BR /&gt;&lt;BR /&gt;        shift; shift; shift; shift; shift&lt;BR /&gt;        /usr/sbin/rlp -I$requestid $BSDC $BSDJ $BSDT $BSDi $BSD1 $BSD2&lt;BR /&gt;        $BSD3 $BS&lt;BR /&gt;        D4 $BSDw $BSDformat $BSDh $1&lt;BR /&gt;        ret=$?&lt;BR /&gt;        case $ret in&lt;BR /&gt;        0)&lt;BR /&gt;                  exit 0&lt;BR /&gt;                  ;;&lt;BR /&gt;        *)&lt;BR /&gt;                  reason="error $ret returned"&lt;BR /&gt;                  ;;&lt;BR /&gt;        esac&lt;BR /&gt;        disable -r"$reason" $printer&lt;BR /&gt;        exit 1&lt;BR /&gt;&lt;BR /&gt;        Change this to:&lt;BR /&gt;&lt;BR /&gt;        shift; shift; shift; shift; shift&lt;BR /&gt;        #multi copy&lt;BR /&gt;        CNT=$COPIES&lt;BR /&gt;        for i in $COPIES&lt;BR /&gt;        do&lt;BR /&gt;        /usr/lib/rlp -I$requestid $BSDC $BSDJ $BSDT $BSDi $BSD1 $BSD2&lt;BR /&gt;        $BSD3 $BSD&lt;BR /&gt;        4 $BSDw $BSDformat $BSDh $1&lt;BR /&gt;        done&lt;BR /&gt;        ret=$?&lt;BR /&gt;        case $ret in&lt;BR /&gt;        0)&lt;BR /&gt;                   exit 0&lt;BR /&gt;                   ;;&lt;BR /&gt;        *)&lt;BR /&gt;                   reason="error $ret returned"&lt;BR /&gt;                   ;;&lt;BR /&gt;        esac&lt;BR /&gt;        disable -r"$reason" $printer&lt;BR /&gt;        exit 1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Vinod</description>
      <pubDate>Thu, 30 Jun 2005 02:32:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-copies-on-line-printer/m-p/4909887#M405932</guid>
      <dc:creator>vinod_25</dc:creator>
      <dc:date>2005-06-30T02:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: multiple copies on line printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-copies-on-line-printer/m-p/4909888#M405933</link>
      <description>Hi Arun&lt;BR /&gt;&lt;BR /&gt;I suggest using Branded Print servers since they have more buffer size and thus avoid loss of data and control bytes.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Mahesh</description>
      <pubDate>Thu, 30 Jun 2005 04:32:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-copies-on-line-printer/m-p/4909888#M405933</guid>
      <dc:creator>Mahesh Kumar Malik</dc:creator>
      <dc:date>2005-06-30T04:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: multiple copies on line printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-copies-on-line-printer/m-p/4909889#M405934</link>
      <description>Hi,&lt;BR /&gt;I have closed early today..shall try the trick tommorrow and get back...many thanks for the info....&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jun 2005 06:49:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-copies-on-line-printer/m-p/4909889#M405934</guid>
      <dc:creator>ARUN_19</dc:creator>
      <dc:date>2005-06-30T06:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: multiple copies on line printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-copies-on-line-printer/m-p/4909890#M405935</link>
      <description>Hi Vinod,&lt;BR /&gt;I tried the modified script.. but it is not working?? Even normal lp command also does not send an output..&lt;BR /&gt;I dont know where i have erred...Mean while extending the same logic and comparing interface files of local printer the the following lines were added which SOLVED THE PROBLEM!!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cpt=$4&lt;BR /&gt;shift; shift; shift; shift; shift&lt;BR /&gt;files=$*&lt;BR /&gt;&lt;BR /&gt;i=1&lt;BR /&gt;while [ $i -le $cpt ]&lt;BR /&gt;do&lt;BR /&gt;   for file in $files &lt;BR /&gt;   do&lt;BR /&gt; /usr/sbin/rlp -I$requestid $BSDC $BSDJ $BSDT $BSDi $BSD1 $BSD2 $BSD3 $BSD4 $BSDw $BSDformat $BSDh $file&lt;BR /&gt;   done&lt;BR /&gt;   i=`expr $i + 1`&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;ret=$?&lt;BR /&gt;case $ret in&lt;BR /&gt;0)&lt;BR /&gt; exit 0&lt;BR /&gt;        ;;&lt;BR /&gt;*)&lt;BR /&gt; reason="error $ret returned"&lt;BR /&gt;;;&lt;BR /&gt;esac&lt;BR /&gt;disable -r"$reason" $printer&lt;BR /&gt;exit 1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;MANY THANKS FOR THE CLUE......&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Jul 2005 09:52:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-copies-on-line-printer/m-p/4909890#M405935</guid>
      <dc:creator>ARUN_19</dc:creator>
      <dc:date>2005-07-01T09:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: multiple copies on line printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-copies-on-line-printer/m-p/4909891#M405936</link>
      <description>Hi!&lt;BR /&gt;I organized and commented this part of the shell, so, take a look:&lt;BR /&gt;&lt;BR /&gt;# These lines changed for allowing multicopies 15/02/2006&lt;BR /&gt;&lt;BR /&gt;#shift; shift; shift; shift; shift&lt;BR /&gt;#&lt;BR /&gt;# /usr/sbin/rlp -I$requestid $BSDC $BSDJ $BSDT $BSDi $BSD1 $BSD2 $BSD3 $BSD4 $BSDw $BSDformat $BSDh $1&lt;BR /&gt;#ret=$?&lt;BR /&gt;#case $ret in&lt;BR /&gt;#0)&lt;BR /&gt;# exit 0&lt;BR /&gt;# ;;&lt;BR /&gt;#*)&lt;BR /&gt;# reason="error $ret returned"&lt;BR /&gt;# ;;&lt;BR /&gt;#esac&lt;BR /&gt;#disable -r"$reason" $printer&lt;BR /&gt;#exit 1&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;nCount=1                                  #Start counter&lt;BR /&gt;nCopies=$4                                #Define number of copies&lt;BR /&gt;&lt;BR /&gt;shift; shift; shift; shift; shift         # take away useless parameters&lt;BR /&gt;cFiles=$*                                 # Define files to be printed&lt;BR /&gt;&lt;BR /&gt;while [ ${nCount} -le ${nCopies} ]; do    # while have copies for being printed ...&lt;BR /&gt;    for cFile in ${cFiles} ;do            # print all files...&lt;BR /&gt;        /usr/sbin/rlp -I$requestid $BSDC $BSDJ $BSDT $BSDi $BSD1 $BSD2 $BSD3 $BSD4 $BSDw $BSDformat $BSDh ${cFile}&lt;BR /&gt;    done&lt;BR /&gt;    i=`expr ${nCount} + 1`                # increase Counter&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;nError=$?&lt;BR /&gt;&lt;BR /&gt;case ${nError} in&lt;BR /&gt;    0) exit 0;; &lt;BR /&gt;    *) reason="error $ret returned"&lt;BR /&gt;       disable -r"$reason" $printer&lt;BR /&gt;       exit ${nError} ;;&lt;BR /&gt;esac      &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Chuck Billy&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Feb 2006 13:35:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-copies-on-line-printer/m-p/4909891#M405936</guid>
      <dc:creator>Julio Cesar Della Piazz</dc:creator>
      <dc:date>2006-02-16T13:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: multiple copies on line printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-copies-on-line-printer/m-p/4909892#M405937</link>
      <description>Sorry Fellows!&lt;BR /&gt;But, even the script below had errors.&lt;BR /&gt;Now, this one, I'm sure , is correct.&lt;BR /&gt;Take a look:&lt;BR /&gt;&lt;BR /&gt;# These lines changed for allowing multicopies 15/02/2006&lt;BR /&gt;&lt;BR /&gt;#shift; shift; shift; shift; shift&lt;BR /&gt;#&lt;BR /&gt;# /usr/sbin/rlp -I$requestid $BSDC $BSDJ $BSDT $BSDi $BSD1 $BSD2 $BSD3 $BSD4 $BSDw $BSDformat $BSDh $1&lt;BR /&gt;#ret=$?&lt;BR /&gt;#case $ret in&lt;BR /&gt;#0)&lt;BR /&gt;# exit 0&lt;BR /&gt;# ;;&lt;BR /&gt;#*)&lt;BR /&gt;# reason="error $ret returned"&lt;BR /&gt;# ;;&lt;BR /&gt;#esac&lt;BR /&gt;#disable -r"$reason" $printer&lt;BR /&gt;#exit 1&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;nCount=1                                  #Start counter&lt;BR /&gt;nCopies=$4                                #Define number of copies&lt;BR /&gt;&lt;BR /&gt;shift; shift; shift; shift; shift         # take away useless parameters&lt;BR /&gt;cFiles=$1                                 # Define files to be printed&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;while [ ${nCount} -le ${nCopies} ]; do    # while have copies for being printed ...&lt;BR /&gt;    for cFile in ${cFiles} ;do            # print all files...&lt;BR /&gt;        /usr/sbin/rlp -I$requestid $BSDC $BSDJ $BSDT $BSDi $BSD1 $BSD2 $BSD3 $BSD4 $BSDw $BSDformat $BSDh ${cFile}&lt;BR /&gt;    done&lt;BR /&gt;    nCount=`expr ${nCount} + 1`           # increase Counter&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;nError=$?&lt;BR /&gt;&lt;BR /&gt;case ${nError} in&lt;BR /&gt;    0) exit 0;; &lt;BR /&gt;    *) reason="error $ret returned"&lt;BR /&gt;       disable -r"$reason" $printer&lt;BR /&gt;       exit ${nError} ;;&lt;BR /&gt;esac      &lt;BR /&gt;</description>
      <pubDate>Thu, 16 Feb 2006 14:23:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-copies-on-line-printer/m-p/4909892#M405937</guid>
      <dc:creator>Julio Cesar Della Piazz</dc:creator>
      <dc:date>2006-02-16T14:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: multiple copies on line printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-copies-on-line-printer/m-p/4909893#M405938</link>
      <description>issue resolved</description>
      <pubDate>Sun, 14 Sep 2008 09:48:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-copies-on-line-printer/m-p/4909893#M405938</guid>
      <dc:creator>ARUN_19</dc:creator>
      <dc:date>2008-09-14T09:48:45Z</dc:date>
    </item>
  </channel>
</rss>

