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
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
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
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
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
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
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
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
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
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
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
LEARN ABOUT REDHAT
pbmpage
pbmpage(1) General Commands Manual pbmpage(1)
NAME
pbmpage - create a one page test pattern for printing
SYNOPSIS
pbmpage [-a4] test_pattern
DESCRIPTION
pbmpage generates a one page test pattern to print on a sheet of paper, for use in calibrating a printer. The test pattern in is PBM for-
mat.
pbmpage produces an image intended for 600 dots per inch printer resolution.
If you are printing on an HP PPA printer, you can convert the output of this program to a stream that you can feed to the printer with pbm-
toppa.
Bear in mind that when you print the test pattern, you are testing not only the printer, but any converter or driver software along the
printing path. Any one of these components may adjust margins, crop the image, erase edges, and such.
If, due to addition of margins, the printer refuses to print the image because it is too big, use pnmcut to cut the right and bottom edges
off the test pattern until it is small enough to print.
test_pattern is the number of the test pattern to generate, as follows. The default is 1.
1 A grid ruled in numbers of pixels. The outermost rules are exactly at the edges of the paper.
2 A vertical line segment, one pixel wide, extending 1/2" up from the exact center of the page.
3 Two diagonal line segments, one starting at the upper left corner of the page, the other starting from the lower left corner of the
page. Both extend 1/2" toward the center of the page at 45 degrees.
OPTIONS
-a4 Generate an image for A4 (European) paper. Without this option, pbmpage generates an image for US standard paper (8 1/2" wide x 11"
high).
SEE ALSO
pbmtoppa(1), pnmcut(1), pbm(5)
AUTHOR
Tim Norman. Copyright (C) 1998. Licensed under GNU Public License
Manual page by Bryan Henderson, May 2000.
01 May 2000 pbmpage(1)