Show
Ignore:
Timestamp:
03/21/05 14:20:51 (19 years ago)
Author:
jerome
Message:

Added the possibility for prehooks to cancel print jobs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tea4cups/trunk/tea4cups.conf

    r598 r601  
    107107# prehook_0 : echo "Your print job has been accepted" | smbclient -M $TEAUSERNAME 
    108108# posthook_0 : echo "Your print job has been printed with status $TEASTATUS" | smbclient -M $TEAUSERNAME 
     109# 
     110# NB : as a special feature, any prehook which exits with a -1 status (255)  
     111# causes the job to NOT be sent to the real backend, in which case TEASTATUS  
     112# value is the string CANCELLED. None of the tees and posthooks gets executed 
     113# in this case, but all remaining prehooks are still executed. 
     114#  
    109115 
    110116