[cups.general] Postprocessing script not running

Geo P.C. pcgeopc at gmail.com
Mon Jul 16 06:21:10 PDT 2012


Dear Helge

The issue has been solved. We need to add the script in AppArmor and made
it in complain mode.

Thanks & Regards
Geo P.C.*
*


On Fri, Jul 13, 2012 at 12:07 PM, Geo P.C. <pcgeopc at gmail.com> wrote:

> Hi
>
>  We are using cups-pdf printer and priner is working fine. In order to
> change the output file we tried PostProcessing script as
> /usr/local/bin/cups-pdf-renamer. The setting in cups-pdf file is as follows:
>  ### Default: <empty>
>  PostProcessing /usr/local/bin/cups-pdf-renamer
>  ########
> Please see the permission of script and its contents.
> root at printserver:~# ls -la /usr/local/bin/cups-pdf-renamer
> -rwxr-xr-x 1 root root 120 2012-07-13 11:16 /usr/local/bin/cups-pdf-renamer
> -------------------------------------------
> #!/bin/bash
> FILENAME=`basename $1`
> DIRNAME=`dirname $1`
> DATE=`date +"%Y-%m-%d_%H:%M:%S"`
> mv $1 $DIRNAME"/"$DATE".pdf"
> -------------------------------------------
>  We installed this cups printer in windows and while printing to this
> printer document conversion is working fine but the script is not running.
> We alos tried from server with lp command still script is not running.
>
>  We just changed the script only to a echo command still script is not
> running. So script is not running in server. In server cups error log it
> shows:
> [Job 6] sh: /usr/local/bin/cups-pdf-renamer: Permission denied
>
>  It seems the permission is correct as 755. Can anyone please help on it.
>
>  Thanks
> Geo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cups.org/pipermail/cups/attachments/20120716/62d903c4/attachment-0001.html>


More information about the cups mailing list