HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problems to print two copies with the command ...
Operating System - HP-UX
1834154
Members
2692
Online
110064
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 11:59 PM
02-20-2006 11:59 PM
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
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
Thanks,
Orlando
Orlando Oliveira
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2006 12:02 AM
02-21-2006 12:02 AM
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
/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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2006 12:25 AM
02-21-2006 12:25 AM
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
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2006 03:08 AM
02-21-2006 03:08 AM
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
Excuse my English.
Thanks to both for the help.
Thank you for everything
Orlando
Orlando Oliveira
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP