Automating printing functions - using LP / CUPS / Watched Folders - MAC OS X
$30-100 USD
Cancelled
Posted almost 12 years ago
$30-100 USD
Paid on delivery
I am looking for a solution for automatically loading print jobs into the CUPS spooler utilizing a "watched folders". Print files (PDF, PostScript, etc.) will be dropped by users in the specified folders to control how and where the job will be queued.
The solution I am looking for should function as follows:
1. A config file will declare each watched folder location with the following information:
* The path of the watched folder. Note: watched folders can be on the local disk, NFS shares, and/or Samba/window shares.
* The path of where to put the file after it is LP'ed.
* The lp command to execute on the file once it is dropped in the watched folder.
2. A script or service will read the config file and search for files in the watched folders with names ending with ".print". These files will be created AFTER the print files are created and/or copied to the watched folders. The ".print" file is a single line tab delimited with the following columns:
* title
* filename
3. Once a ".print" file is found, the ".print" file is to be deleted, and the respective "lp" command will be executed for the filename as read from the ".print" file the same watched folder path and with the -t option appended. e.g. -t "My Big Report" [login to view URL]
4. After the lp command is finished, the file (i.e. [login to view URL]) will be moved to the destination path for this respective entry in the config.
This will operate on a Mac mini Server running Mac OS X 10.7.3.
It is preferred that your solution be setup so that we can easily maintain it, enhance, etc. without having to recompile code, etc.
Please advise how you will implement this solution.