Monitored Spooling (llpd Configuration)

EasySpooler offers the option of monitoring a directory on theEasySpooler server for file names that match a certain pattern or patterns. You may want to use this option if you have an application that writes files to a directory rather than spooling them to a printer. EasySpooler can monitor the directory for the file names that match the pattern(s) you specify and spool the files.

Before you can use monitored spooling, you must set up the llpd configuration file, llpd.config, by adding one or more llpd definitions to the file. The llpd.config file defines the file name pattern(s) to be matched, command line options, and archive directory for saving spooled files. You can set up llpd.config through the Web UI or manually.

 

NOTE: When you set up llpd.config using the Web UI, you can have only one configuration file and it must reside in LPSDIR/adm. If you want to have more than one llpd.config file or use another directory, you must set the file up manually. See the section on llpd.config in Chapter 3 of the EasySpooler Developer’s Guide for more information.

 

The monitored spooling program, llpd, must be running for pattern recognition to occur. This program specifies the name of the directory that you want monitored and sets any options you want to use. For more information, see the section on llpd in Chapter 2 of the Rhapsody Developer’s Guide.

 

NOTE:  After you have set up llpd.config, you can make changes to llpd.config without restarting llpd. The llpd program monitors the llpd.config file and reconfigures itself if llpd.config changes.

 

To access and configure monitored spooling (llpd):

  1. Click Admin in the main menu.

  2. Click EasySpooler server from the menu options and select Monitored spooling from the drop-down menu options. The Monitored Spooling (llpd Configuration) window opens.

NOTE: You can also access monitored spooling from the EasySpooler Server window. Select Admin from the main menu. Select EasySpooler server from the first drop-down menu options and select Server status from the second drop-down menu options. The EasySpooler Server window opens. The Monitored spooling option is under the Tools section.

The llpd Configuration window shows entries previously made in the underlying llpd.config file. llpd entries are evaluated by EasySpooler in the order they are entered on the Monitored Spooling (llpd Configuration) window.

See Working with Monitored Spooling to:

 

To add the first entry to the list:

  1. Click +Add llpd entry. The Add an llpd Entry window opens.

  2. In the Pattern field, enter an extended, regular expression pattern to match against file names.

    NOTE:
    The pattern is case sensitive, but this requirement can be overridden through judicious construction of the regular expression, or by using the -i option when you start llpd.

  3. In the Options field, enter the command line options for the llp command.

    NOTE:
    You must enter the -ddest option if you have not specified a default destination. An entry is required in the Options field if the Archive Directory field is blank. To define a default destination, see Set a System Default Printer.

  4. In the Archive Directory field, enter a directory where files are to be archived.

    NOTE:
    The archive directory must exist; llpd will not create it. llpd will overwrite any existing file with the same name, if permissions allow. If they do not allow, the file will not be archived. An entry is required in the Archive Directory field if the Options field above is blank..

  5. Click OK on the Add llpd entry window. The Monitored Spooling (llpd Configuration) window re-opens showing the new entry.

  6. Click Close on the Monitored Spooling window.