Linux Commands Examples

A great documentation place for Linux commands

foomatic-getpjloptions

<put a short description here>

Synopsis

foomatic-getpjloptions device

foomatic-getpjloptions hostname port


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
PRINTF=/usr/bin/printf
PERL=/usr/bin/perl
usage(){
cat <<EOF ;
usage: foomatic-getpjloptions <device>
usage: foomatic-getpjloptions <device>
foomatic-getpjloptions <hostname> <port>
<device>: Device where a local printer is connected to
0
source
            
CAT=/bin/cat
PRINTF=/usr/bin/printf
PERL=/usr/bin/perl
usage(){
cat <<EOF ;
usage: foomatic-getpjloptions <device>
usage: foomatic-getpjloptions <device>
foomatic-getpjloptions <hostname> <port>
<device>: Device where a local printer is connected to

description

foomatic-getpjloptions Sends a set of PJL commands and reads back the PJL options and status from a printer over a network connection or device bidirectional interface such as parallel, USB, serial. printers to standard output. The output can be piped into foomatic-addpjloptions to add options to the database.

Options

device

The interface to which a local printer is connected, e.g. /dev/lp0, /dev/usb/lp0, /dev/tty00, etc. For a parallel port, you must have bidirectional support enabled at the BIOS level and the parallel port driver must support the bidirectional mode. Check your parallel port BIOS settings for EPP/bi-directional mode.

hostname

Host name or IP address of a network printer (HP JetDirect, DLINK, etc.).

port

Port on which your network printer listens for socket (Appsocket) connections. Most common ports are 9100 (JetDirect), 10000 (DLINK). Usually you can configure the port via a configuration interface.

exit status

foomatic-getpjloptions returns ???

warnings

Uni-directional protocols as remote LPD are not supported as no status is returned. Some network print servers which attach to a printer parallel port do not support bidirectional mode.


author

Manfred Wassmann <manolo@NCC-1701.B.Shuttle.de> for the foomatic project using output from the associated binary. Modified by Patrick Powell <papowell at lprng.com> to provide betters support for network printers, error messages, and remove CR and FF from output.

How can this site be more helpful to YOU ?


give  feedback