#!/bin/sh
################################################################################
#                            Pyla printcap filter                              #
#This is a simple example on how to use pyla in a faxprinter fashion.          #
################################################################################
#Create a printcap entry like the following, specifying the proper path to     #
#pyla_print script.                                                            #
#fax
#:filter=/path/to/pyla_print
#:lp=/dev/null
#:mx=0
#:rw
#:sd=/var/spool/lpd/%P
#:sh
################################################################################

#Here you have to set the path to pyla main directory.
#PYLAPATH=/path/to/pyla
PYLAPATH=/home/andrea/scripts/python/pyla
#This export may be needed too.
export DISPLAY=:0.0

cd $PYLAPATH
#Remember to change the profile.
exec `./pyla.py -i local`
