Graph-IT

print.php

This script prints a given file x-times on a printer through lpr.

Usage:

print.php <File> [printer] [count] [-d]

Parameters:

Note: When 'printer' or 'count' are not specified the values will be taken from the config.ini. 'Delete' can only be used through the command line parameter.

Side note: We use this script in an icron.d file monitoring a folder.

<monitored_folder> IN_CLOSE_WRITE <path to print.php> $@/$# <Printer> 1 -d

When our scanner scans a file and creates it inside the monitored folder, it will automatically be printed and then deleted.