To create a printer command script file

Note: To create a print command greater than 50 characters, create a script file with the print command.

Example

A user may want to transfer a print file from the UNIX server to their personal computer. You can define a printer that saves output to a file in a user's home directory to enable the transfer.

Example

This is an example of output to a printer.

lp -dlaser

The command above assumes the printer is named laser. This command might be different, depending on your operating system and printer.

  1. Navigate to $GENDIR/bin or the location you want to create the file.
  2. Create the script file. Include the line: #!/bin/sh as the first line of the file in order to identify it as a script file.
  3. Make the script file executable.
  4. Type the name of the script file in the Print Command field on the Printer Definition form.

    If the script file is not in the $GENDIR/bin or another directory predefined in the $PATH statement, specify the entire path name to the file.