TotalNET Advanced Server 5.2 Reference Manual

acprint

This command sends a print job to a remote AppleTalk realm printer, provided the system contains an active AppleTalk transport, the AppleTalk ream has started, and the remote printer supports the file's format. For example, you must print PostScript files to PostScript printers.

Location

TNHOME/usr/bin

Usage

To print a file to an AppleTalk realm printer with the given name:

acprint [-b] [-d] [-o] [-t] printername [file...]

To display the printer's PAP status string:

acprint -s printername

Options

-b

Remain attached to the terminal until the job reaches the front of the printer's queue and the printer accepts all data. This option also reads the standard input in an "unbuffered mode" to allow acprint to work interactively. If you do not specify this option, the print job occurs in the background.

-d

Delete the files after they print. 

-o

Write output data from the printer to the standard output. 

-t

Turn off the default printer output translation. When it displays printer output, acprint normally translates end-of-line markers CR and CR-LF to the UNIX convention LF.

-s

Acquire and display the printer's PAP status string. 

printername

Specify the name of the printer to receive the print job. Enter the printer name in the form name:type or name:type@zone. If the zone does not exist or if you enter it as "*", this command uses the host server's local zone name. An AFP server has the type AFPServer. Print servers have the type LaserWriter.

 

file

Specify the file to print. 

Examples

  1. Use the following command to send the file rain.doc to the remote AppleTalk realm printer atlwpr:LaserWriter@CINNEBAR and turn off the default printer output translation:


    acprint -t atlwpr:LaserWriter@CINNEBAR rain.doc
  2. Use the following command to send the file seattle.doc to the printer atlwpr:LaserWriter@CINNEBAR and delete the file after it prints:


    acprint -d atlwpr:LaserWriter@CINNEBAR seattle.doc
  3. Use the following command to send the file northwest.doc to the printer atlwpr:LaserWriter@CINNEBAR and write the output data from the printer to the standard output:


    acprint -o atlwpr:LaserWriter@CINNEBAR northwest.doc