Operating System - HP-UX
1834154 Members
2692 Online
110064 Solutions
New Discussion

Re: Problems to print two copies with the command "lp"

 

Problems to print two copies with the command "lp"

Hi,

When sending a report with two copies (command lp), the alone printer prints one of the copies.

The printer this configured as remote

lp -d -n2 /etc/hosts

Thanks,

Orlando
Orlando Oliveira
3 REPLIES 3
Steve Steel
Honored Contributor

Re: Problems to print two copies with the command "lp"

Hi

/var/spool/lp/model >pg rmodel

#!/usr/bin/sh
# @(#) $Header: rmodel,v 72.3.1.2 97/04/28 19:49:14 ssa Exp $
#Note: These options must be preceded by "BSD" in the option argument.
# ie. use "-oBSDh" to suppress banner page.

# lp interface for remote spooling.

# Options Recognized:
#
# -C class Take the following argument as a job
# classification for use on the banner page.
#
# -J job Take the following argument as the job name
# to print on the banner page. Normally, the
# first file's name is used.
#
# -T title Use the next argument as the title used by
# pr(UTIL) instead of the file name. -T is
# ignored unless the -p option is specified.
#
# -i[numcols] Cause the output to be indented. If the next
# argument is numeric, it is used as the number
# of blanks to be printed before each line;
# otherwise, 8 characters are printed.
#
# -kfont Specify a font to be mounted on font position
# k, where k is from 1 to 4.
#
# -wnum Take the immediately following number to be
# the page width for pr(UTIL).
#
# The following single letter options are used to notify the
# line printer spooler that the files are not standard text
# files. The spooling system uses the appropriate filters (if
# the option is supported) to print the data accordingly.
# These options are mutually exclusive.
#
# -c The files are assumed to contain data
# produced by cifplot.
#

This is the remote script

It does not have a multiple copy option

Thus it does not work


Look also in /etc/lp/interface/printername

Steve STeel
If you want truly to understand something, try to change it. (Kurt Lewin)
Bill Hassell
Honored Contributor

Re: Problems to print two copies with the command "lp"

As Steve points out, a remote printer (one that is attached to another computer (like a Windows or other Unix box) or a non-HP LAN card in the printer, you are severely limited on options (no -n and no -o options will work).


Bill Hassell, sysadmin

Re: Problems to print two copies with the command "lp"

hi,

Excuse my English.

Thanks to both for the help.

Thank you for everything

Orlando
Orlando Oliveira