lprafp command: submits remote jobs in InfoPrint Manager for AIX or InfoPrint Manager for Linux

Syntax

lprafp [-n] [-o option] [-r retries] [-q delay] [-p destination] 
[-s server] FileName

Description

The lprafp command, when compiled on a UNIX client system, allows UNIX users operating on AIX, Linux, non-AIX systems to pass -o flag keywords to InfoPrint for use in printing or sending remote jobs. The -o flags that are interpreted by InfoPrint can be sent with the remote job.

You can submit a job using a shell script called LPR. When you invoke LPR with the -A flag, LPR invokes the lprafp command. lprafp passes -o keywords to InfoPrint. If you invoke the LPR shell script without the -A flag, LPR invokes the operating system's standard print command.

Flags

-n
Indicates that only error messages display when the output is processed. If you do not specify this flag, you receive status information about the job sent to the destination system.
-o option
Indicates InfoPrint options, for example:
-oformdef=F1SAMPLE

You must specify all related -o options together in a job (parameter name, then value, without other flags in between) if they are to be passed correctly to InfoPrint Manager.

See the oflag man page for descriptions of the -o options.

-r {3 | retries} DEFAULT=3
Indicates how many times the lprafp program tries to connect with the TCP/IP line printer daemon (lpd) on the destination system. This flag defaults to three retries.
-q {10 | delay} DEFAULT=10
Indicates the retry delay in seconds. This flag defaults to ten seconds.
-pdestination
Indicates the destination name on the server. This flag defaults to the value of the LPR_PRINTER environment variable.
-sserver
Specifies the destination server. This flag defaults to the value of the LPR_SERVER environment variable.

Arguments

Use the argument value to identify the specific files you want to submit for printing or transmission. If you specify multiple objects, separate the object names with spaces.

You can use these arguments with the lprafp command:

FileName ...
Indicates the files that are to be printed or sent. You can specify global file characters in this argument.

Examples

  • Submitting a remote print job

    To submit two copies of /etc/motd to the logical printer named laser on server alexandria for printing with an end sheet that shows this came from bobjones in department j12, enter:

    LPR -A -ocopies=2 -ode=j12 -odi=bobjones -otrailer=yes -s alexandria \ 
        -p laser /etc/motd

  • Submitting a remote email job

    To send the file memo1 to the logical destination emailbox on server alexandria, enter:

    LPR -A -s alexandria -p emailbox memo1

    Note: The default document associated with emailbox must specify the email-to-address attribute.
    Setting environment variables

    To set up the environment so that subsequent print requests are sent to the logical destination named alexe-lp on server alexandria, enter:

    export LPR_PRINTER=alexe-lp export LPR_SERVER=alexandria

    Note: The server name can be specified using host name, fully qualified host name, IPv4 or IPv6 addresses.

    To test that your environment variables have been set correctly, enter:

    LPR -A /etc/motd

Files

/usr/lpp/psf/utils/lpr/Makefile
Generates the executable program
/usr/lpp/psf/utils/lpr/getopts.c
Source code
/usr/lpp/psf/utils/lpr/getopts.h
Source code header file
/usr/lpp/psf/utils/lpr/LPR
Shell script for print command
/usr/lpp/psf/utils/lpr/lprafp.c
Source code
/usr/lpp/psf/utils/lpr/lprafp.h
Source code header file