Adding and Removing Shared Printers

This topic presents instructions for:

Adding a Shared Printer

Removing a Shared Printer

Adding a Shared Printer

When adding a shared printer, watch for these caveats:

To add a shared printer:

  1. Ensure that the UNIX spooler is started and at least one UNIX queue is started. Type:

  2. lpc status 

  3. Ensure that the printer works with UNIX.

  4. For example, type:

    lpr -P[unix.formqueue.name] unix.file.name

    When the unix.file.name prints on the printer, the printer is shared in UNIX and is ready to be shared in D3.

  5. Insert these statements in the user-coldstart macro in the dm account:

  6. startshp 1,1,0,s126,lp.unix

    startshp 2,2,0,s127,lp.unix,(lpr -Plp1)

    The startshp command:

To use a more complex printer definition item:

  1. Locate the line containing =x in the item.

  2. This entry corresponds to @(-99).

  3. Locate the line which should be associated to @(-269), 170 entries later.

  4. Note that a line starting with an exclamation mark is a comment and does not count.

  5. Add the line:

  6. d,c'End of Job',< -269

  7. Compile the form queue item, then enter:

  8. assignfq formqueue,device (c

    With this setting, the printer process sends an End of Job string between each job. The filter scans the data stream, looking for this inter-job sequence to separate the data into different UNIX print jobs.

    The inter-job sequence can be any character or sequence of characters that does not occur in a normal print job.

    NOTE

    • It is strongly advised to include a nonprintable character in the inter-job sequence, such as:

    d,x'ff',c'End of Job',x'ff',< -269

    • Never use the TCL command startptr on a shared printer as it does not spawn the necessary filter process.

Removing a Shared Printer

A shared printer can be stopped with the shp-kill command. This command executes an sp-kill of the D3 printer and kills the underlying D3 process and the filter.

See Also

Shared Printers

Troubleshooting