lp/ lpadmin - send print request to specific tray

From: sumeet.chandwani@tcs.com
Date: Mon Nov 13 2006 - 01:50:56 EST


Hi Gurus,

Can anyone guide me as to how can we send print requests to a print queue
to print using a specific tray on the printer
I know that we can define a print queue with the number of trays present
using lpadmin command (option -t). But how to send print requests to use
specific trays.

     -M -f form-name [-a [-o filebreak]] [-t tray-number]]

Below is the text file with the steps that I have done so far.

I will appreciate any feedback in this regard. I'll sumarize.

Thanks & Regards,
Sumeet Prahlad Chandwani
Tata Consultancy Services
Mailto: sumeet.chandwani@tcs.com
Website: http://www.tcs.com
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
merovingian#cat form1
Page Length: 66
Page Width: 80
Number of Pages: 1
Line Pitch: 6
Character Pitch: 10
Character Set Choice: any
Ribbon Color: any
merovingian#lpforms -f spc -F /etc/lp/forms/form1
merovingian#lpstat -f all
form spc is available to you
merovingian#pwd
/etc/lp/forms
merovingian#ls -lrt
total 4
-rw-r--r-- 1 root other 128 Nov 13 00:42 form1
drwxrwxr-x 2 lp lp 512 Nov 13 00:44 spc
merovingian#cd sp
cksh: sp: not found
merovingian#cd spc
merovingian#ls -lrt
total 2
-rw-rw-r-- 1 lp lp 154 Nov 13 00:44 describe
-rw-rw-r-- 1 lp lp 0 Nov 13 00:44 deny
merovingian#cat describe
page length: 66
page width: 80
number of pages: 1
line pitch: 6
character pitch: 10
character set choice: any
ribbon color: any
alignment pattern: simple
merovingian#cd ..
merovingian#ls -lrt
total 4
-rw-r--r-- 1 root other 128 Nov 13 00:42 form1
drwxrwxr-x 2 lp lp 512 Nov 13 00:44 spc
merovingian#lpadmin -p spc_test -M -f spc -a -t^C
merovingian#lpadmin -p spc_test -M -f spc -t 2
UX:lpadmin: INFO: "cpi" setting impossible.
UX:lpadmin: INFO: "lpi" setting impossible.
UX:lpadmin: INFO: "length" setting impossible.
UX:lpadmin: INFO: The form "spc" requires capabilities
                  not provided by the printer.
UX:lpadmin: WARNING: Shouldn't mount the form.
             TO FIX: You may want to adjust the form
                     definition, if possible. Check that the
                     Terminfo database gives correct
                     attributes for the printer type.
                     The form is considered mounted anyway.
UX:lpadmin: WARNING: Form "spc" is not listed as available
                     for the printer "spc_test".
             TO FIX: Check the name; if wrong enter the
                     command again.
                     Processing continues.
UX:lpadmin: ERROR: The printer does not have the tray number you
                   specified.
           TO FIX: Try using the -t option with -M to set the total
                   number of trays.
merovingian#lpadmin -p spc_test -M -t 2
UX:lpadmin: ERROR: Nothing to mount.
           TO FIX: Give the -f or -S option to identify
                   form or print wheel to mount.
merovingian#lpadmin -p spc_test -f spc -M -t 2
UX:lpadmin: INFO: "cpi" setting impossible.
UX:lpadmin: INFO: "lpi" setting impossible.
UX:lpadmin: INFO: "length" setting impossible.
UX:lpadmin: INFO: The form "spc" requires capabilities
                  not provided by the printer.
UX:lpadmin: WARNING: Shouldn't mount the form.
             TO FIX: You may want to adjust the form
                     definition, if possible. Check that the
                     Terminfo database gives correct
                     attributes for the printer type.
                     The form is considered mounted anyway.
UX:lpadmin: WARNING: Form "spc" is not listed as available
                     for the printer "spc_test".
             TO FIX: Check the name; if wrong enter the
                     command again.
                     Processing continues.
UX:lpadmin: ERROR: The printer does not have the tray number you
                   specified.
           TO FIX: Try using the -t option with -M to set the total
                   number of trays.
merovingian#
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:41:10 EDT