1832650 Members
2902 Online
110043 Solutions
New Discussion

remote printing

 
jim bidebo
Regular Advisor

remote printing

how does bind a printercue to a predefined tray or paper format when i use remote printing (lpd)? when i use jetdirect i can define which type of paper to use with the $paper variable, is there something similiar when running remote?
4 REPLIES 4
Steve Steel
Honored Contributor

Re: remote printing

Hi

I do not believe this is possible because the remote scripts are very general while jetadmin has a script per class of printer.

With BSD as an option you can only send BSD
options . see /var/spool/model/rmodel

Without BSD selected then options like the landscape -olandscape will work but not
tray specific.

Use the jetadmin or printer installer on each machine if the printer is on the network instead of a remote scenario.


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
jim bidebo
Regular Advisor

Re: remote printing

well i got the BSD option enabled.
but couldnt find any usefull information in that rmodel script either...
Frank Slootweg
Honored Contributor

Re: remote printing

I am not sure if I correctly understand your question, but here it goes:

On the remote system, create an *extra* *dummy* printer.

You can use a modified copy of the "dumb" model script.

In the part of the script where it does the actual printing (the "cat "$file" 2>&1" and "echo "\014\c"" commands in the "for file in $files", "do", .... "done" loop), use, *instead of* the cat and echo commands, a *new* "lp -d... -o... $file" command, where "-d..." specifies the desired real printer and "-o..." specifies the desired option(s) for tray, paper, etc..

On the local system, set up a new remote printer pointing to the dummy printer.

Now you can remotely print to the dummy printer, which in turn prints to the real (remote) printer, using the desired options.

I hope this solves your problem.
Steve Steel
Honored Contributor

Re: remote printing

Hi


Found time to make a non bsd remote printer.

It seems to take all options.


Here is my control file from the spooler.

pg /var/spool/lp/request/tester046/cfA001xantia
Hxantia
Proot
Jtester046-1
C
Lroot
B
K1
Oa3 landscape btray1
T/etc/hosts
FdfA001xantia
fdfA001xantia
UdfA001xantia
N/etc/hosts
A0


So remake the printer as non bsd and try the options.


To test

disable the printer. try printing
check /var/spool/lp/request/printer/c* to see
what is sent to the remote printer.


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)