Sponsored Content
Operating Systems HP-UX Print Problem in UNIX. Need to know the option to specify the print paper size Post 302120628 by qfwfq on Thursday 7th of June 2007 09:35:40 AM
Old 06-07-2007
Here is what I can tell you. They are many options available for lp such as :

-onobanner
-otrayX
-olegal
-olandscape
-oc
-otmXX
-olpix
etc.

For ie., let's say you want to print using tray3 for special paper and remove the banner from the top.

lp -dprinter -onobanner -otray3

We use all HP printer and are able send request to the printer using -olegal option and don't have to tell what tray cause the printer knows where the legal paper is:

lp -dprinter -onobanner -olegal

We also use option -olpix for special sized paper so we are able to change number of line per inch. You can also look at -otmXX for margins.
 

10 More Discussions You Might Find Interesting

1. HP-UX

How to override the default paper size received by a print job

Hi, Kindly help me with your valid suggestions to solve the below problem: "How to override the default paper size received by a print job. Ex. The output file is generated with a default paper size of 11x17 and we need to print on 11x14 paper. When printing this file from HP Unix, is there... (4 Replies)
Discussion started by: ukarthik
4 Replies

2. Shell Programming and Scripting

how can i print the output of the shell script in bigger size

how can i print the output of the shell script in bigger size eg: echo " hello world" i want to print this in the output with bigger size in the middle of the screen. can someone please help me out in that (2 Replies)
Discussion started by: mail2sant
2 Replies

3. Shell Programming and Scripting

find a file and print its size

I have a directory, /local/test/ under this directory is many subdirectories, each subdir has about 70 files, the 70 files are always the same names. I want to print to the screen the size of fileabc.txt in each of the subdirectories. I cannot seem to work with pipe and splats * because there are... (3 Replies)
Discussion started by: ajp7701
3 Replies

4. Shell Programming and Scripting

Howto Print File Path or Print the Filename

I'm trying to clean up my samba share and need to print the found file or print the path of the image it tried to searched for. So far I have this but can't seem to get the logic right. Can anyone help point me in the right direction? for FILE in `cat list`; do if ; then ... (1 Reply)
Discussion started by: overkill
1 Replies

5. UNIX for Dummies Questions & Answers

Print folder size ordered by pattern value of specific file type :-) ! challenge !

Hello dear unix command line friends ! I'm looking for a simple combinaison of ls & awk (maybe grep) to print: list of folders of a directory |_ ordered by size like what I have with $ du -sk ./* | sort -rn printing that result: 8651520 ./New Virtual Machine_1 8389120 ./Redhat ... (1 Reply)
Discussion started by: holister
1 Replies

6. Shell Programming and Scripting

print first few lines, then apply regex on a specific column to print results.

abc.dat tty cpu tin tout us sy wt id 0 0 7 3 19 71 extended device statistics r/s w/s kr/s kw/s wait actv wsvc_t asvc_t %w %b device 0.0 133.2 0.0 682.9 0.0 1.0 0.0 7.2 0 79 c1t0d0 0.2 180.4 0.1 5471.2 3.0 2.8 16.4 15.6 15 52 aaaaaa1-xx I want to skip first 5 line... (4 Replies)
Discussion started by: kchinnam
4 Replies

7. Shell Programming and Scripting

print option - drop 1 line

Hi, Is there a print option to drop the data 1 line? Basically the page is too close to the top of the page and I would like to drop it one line automatically, editing the actual data is complicated. (8 Replies)
Discussion started by: mcclunyboy
8 Replies

8. Shell Programming and Scripting

grep option to print the first match of each member of a list?

Hello, How to grep only the first match of each (unique) member of a list from the file? Say member.list contains: member1 member2 member3and table.tab which is sorted by the first 2nd and then 3rd column. member1 1.2 234 member1 1.1 234 member2 3.3 111 member2 2.3 222 member2 2.3 111... (5 Replies)
Discussion started by: yifangt
5 Replies

9. AIX

Print Paper Size always A3 instead of A4

RICOH MPC4501 via AIX PrintServer is only printing on A3, even though its A4 contents. Similar Printer on same AIX PrintServer is printing correct though. What you think issue with first printer? AIX V6.1 (1 Reply)
Discussion started by: panchpan
1 Replies

10. UNIX for Dummies Questions & Answers

How to create a print filter that print text & image?

Currently, I have a print filter that takes a text file, that convert it into PCL which then gets to a HP printer. This works. Now I need to embedded a image file within the text file. I'm able to convert the image file into PCL and I can cat both files together to into a single document... (1 Reply)
Discussion started by: chedlee88-1
1 Replies
pcfof(8)						      System Manager's Manual							  pcfof(8)

NAME
pcfof - Generic print filter for ANSI, PCL, and multi-language PostScript printers SYNOPSIS
/usr/lbin/pcfof +Bbanner-tray +Cfilename.pcf [-n login] [-h host] [...] [accounting-file] OPTIONS
Use of the print options is dependent on the features available on the print device, and on the current status of those features. For example, selection of a particular paper size and orientation requires that appropriate paper is correctly loaded in the paper trays avail- able on the print device. Options in /etc/printcap Specifies the default tray name to select for printing the banner page. For example: :of=/usr/lbin/pcfof +Bupper +Cln17.pcf: In this example, the banner page will be printed on whatever paper is currently loaded into the upper tray on the selected print device. Specifies the name of the printer configuration file to use for this print job. Specifies the default tray name to select for printing the file. For example: :if=/usr/lbin/pcfof +Iupper +Cln17.pcf: Specifies the default tray name to select for printing the trailer page. For example: :of=/usr/lbin/pcfof +Tlower +Cln17.pcf: This command is useful of you want to use colored paper as a divider between print jobs. Specifies the default tray name to select to place the printed pages. For example: :if=/usr/lbin/pcfof +olower +Cln17.pcf: Print Filter Options Specifies the host name of the job owner. Specifies the amount of indentation. This value controls how far the print image appears from the edge of the page. Specifies the login name of the job owner. Specifies the tray where the printed pages are placed. See the -I option for information on printer configuration files. Specifies the page width in columns. Selects printer features but does not perform any file processing. Specifies the tray name from which print paper is selected. To find the available options, view the printer configura- tion file (.pcf file) specified in the /etc/printcap file by the if entry. For example: :if=/usr/lbin/pcfof +Cln17.pcf: The ln17.pcf pcf file is located in /usr/lbin/pcf/ln17.pcf. The pcf file header provides additional information on available tray options. Specifies the number of sides to print on each sheet. You can specify sides as follows: Print on one side of the sheet. Print on both sides of the sheet. Specifies options related to page orientation and printing of text files. The option-list argu- ment can include one option or multiple options that are separated by commas (no embedded spaces). The following settings for page orientation are valid for both PostScript or text files: The printed output is parallel to the short side of the page. The printed output is parallel to the long side of the page. The following options are available for printing text (not PostScript) files: Print even numbered pages. Reduce the number of lines on a page to n lines. Print odd numbered pages. Perform codeset conversion if codeset-name is different from the codeset component of the current locale and if the appropriate codeset converter is installed on the system. See iconv_intro(5) for information about codeset conversion. Print the pages of a file within the start and end parameters. When start is not specified, printing starts at page 0. When end is not specified, printing continues to the end of the file. The file header may specify additional printer-specific options. (See the description of the -I option for the location of files.) OPERANDS
Specifies the file in which accounting information will be recorded. DESCRIPTION
The pcfof filter is a generic print filter that can be used with text and PostScript files and handle printer device dependencies. The type of printer that the filter is supporting is determined by the printer configuration file (.pcf file) that is specified by the +C option. The Tru64 UNIX product includes files for a variety of printers. In addition, a template file (/usr/lbin/pcf/template.pcf) is available for the system administrator to customize for use with additional printers. The pcfof filter should be specified for both the of and the if entries in the /etc/printcap file. Use the wwpsof filter when you want to print files in languages for which printer-resident fonts are not available. See the wwpsof(8) ref- erence page for more information. EXIT STATUS
An error has occurred. ERRORS
The /etc/printcap error log field, lf, is used to specify the name of the error log file. SEE ALSO
Commands: cancel(1), lpr(1), pr(1), printer(1), pac(8), thailpof(8), wwpsof(8) Files: printcap(4) Others: i18n_printing(5) System Administration pcfof(8)
All times are GMT -4. The time now is 04:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy