Доброго дня.
Настраиваю CUPS, хочу чтобы он после создания файла выполнял скрипт. Для этого пишу строку в cups-pdf.conf
PostProcessing /var/spool/cups-pdf/pdf_to_tifof2
В логе Cups:
Wed May 25 08:13:32 2016 [DEBUG] switching to new gid (root)
Wed May 25 08:13:32 2016 [DEBUG] user identified (severin)
Wed May 25 08:13:32 2016 [DEBUG] output directory name generated (/var/spool/cups-pdf)
Wed May 25 08:13:32 2016 [DEBUG] user information prepared
Wed May 25 08:13:32 2016 [DEBUG] spoolfile name created (/var/spool/cups-pdf/cups2pdf-5073)
Wed May 25 08:13:32 2016 [DEBUG] source stream ready
Wed May 25 08:13:32 2016 [DEBUG] destination stream ready (/var/spool/cups-pdf/cups2pdf-5073)
Wed May 25 08:13:32 2016 [DEBUG] owner set for spoolfile (/var/spool/cups-pdf/cups2pdf-5073)
Wed May 25 08:13:32 2016 [DEBUG] using traditional fgets
Wed May 25 08:13:32 2016 [DEBUG] found beginning of postscript code (%!PS-Adobe-3.0)
Wed May 25 08:13:32 2016 [DEBUG] now extracting postscript code
Wed May 25 08:13:32 2016 [DEBUG] found title in ps code (MSxpsPS
/cups/cups-pdf_log)
Wed May 25 08:13:32 2016 [DEBUG] found end of postscript code (%%EOF)
Wed May 25 08:13:32 2016 [DEBUG] all data written to spoolfile (/var/spool/cups-pdf/cups2pdf-5073)
Wed May 25 08:13:32 2016 [DEBUG] trying to use PS title (MSxpsPS
/cups/cups-pdf_log)
Wed May 25 08:13:32 2016 [DEBUG] removing trailing newlines from title (MSxpsPS)
Wed May 25 08:13:32 2016 [DEBUG] checking for hex strings (MSxpsPS)
Wed May 25 08:13:32 2016 [DEBUG] not a hex string, has no start marker (MSxpsPS)
Wed May 25 08:13:32 2016 [DEBUG] calling alternate_replace_string
Wed May 25 08:13:32 2016 [DEBUG] removing alternate special characters from title (MSxpsPS)
Wed May 25 08:13:32 2016 [DEBUG] title successfully retrieved (MSxpsPS)
Wed May 25 08:13:32 2016 [DEBUG] input data read from stdin
Wed May 25 08:13:32 2016 [DEBUG] output filename created (/var/spool/cups-pdf/MSxpsPS.pdf)
Wed May 25 08:13:32 2016 [DEBUG] ghostscript commandline built (/usr/bin/gs -q -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="/var/spool/cups-pdf/MSxpsPS.pdf" -dAutoRotatePages=/PageByPage -dAutoFilt$
Wed May 25 08:13:32 2016 [DEBUG] output file unlinked (/var/spool/cups-pdf/MSxpsPS.pdf)
Wed May 25 08:13:32 2016 [DEBUG] TMPDIR set for GhostScript (/var/tmp)
Wed May 25 08:13:32 2016 [DEBUG] waiting for child to exit
Wed May 25 08:13:32 2016 [DEBUG] entering child process
Wed May 25 08:13:32 2016 [DEBUG] GID set for current user
Wed May 25 08:13:32 2016 [DEBUG] supplementary groups set for current user
Wed May 25 08:13:32 2016 [DEBUG] UID set for current user (severin)
Wed May 25 08:13:32 2016 [DEBUG] ghostscript has finished (0)
Wed May 25 08:13:32 2016 [DEBUG] file mode set for user output (/var/spool/cups-pdf/MSxpsPS.pdf)
Wed May 25 08:13:32 2016 [DEBUG] postprocessing commandline built (/var/spool/cups-pdf/pdf_to_tifof2 /var/spool/cups-pdf/MSxpsPS.pdf severin severin)
Wed May 25 08:13:32 2016 [DEBUG] postprocessing has finished (32256)
Wed May 25 08:13:32 2016 [DEBUG] spoolfile unlinked (/var/spool/cups-pdf/cups2pdf-5073)
Wed May 25 08:13:32 2016 [DEBUG] all memory has been freed
Спасибо.