Changeset 682 for tea4cups

Show
Ignore:
Timestamp:
08/10/06 23:22:13 (18 years ago)
Author:
jerome
Message:

Added an example posthook to log the output of ps2pdf, demonstrating the
way pre and post hooks can communicate.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tea4cups/trunk/tea4cups.conf

    r681 r682  
    185185# 
    186186# prehook_rawpdf : /bin/cat $TEADATAFILE | su $TEAUSERNAME -c "ps2pdf - `/usr/bin/getent passwd $TEAUSERNAME | /usr/bin/cut -f 6,6 -d :`/JOB-$TEAJOBID.pdf" 
     187# 
     188# The posthook below will log all error or warning messages sent by ps2pdf 
     189# to a job specific file in /tmp/ 
     190# 
     191# posthook_rawpdf : /bin/cat >/tmp/log_of_pdf_creation_for_job_$TEAJOBID 
    187192 
    188193