Filter Help

Paul Conklin paul.conklin at cerner.com
Thu Nov 24 17:41:24 PST 2011


> I'm trying to write a filter that integrates with a 3rd party app.  Their requirments are that I call their exe and pass it a page at a time.  I can parse the file into pages (they need it in PCL) via ghostscript, but where I'm having problems is figuring out how many pages there are.
>
> /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOMEDIAATTRS -sDEVICE=ljet4 -sstdout=%stderr -sOUTPUTFILE=$TMPDIR/$PRINTER-$$-%03d.pcl $6
> 	for file in `/bin/ls $TMPDIR/$PRINTER-$$-*`
>
> D [24/Nov/2011:17:01:53 -0800] [Job 21] /usr/lib/cups/filter/troysecurerx: line 12: /bin/ls: cannot execute [Permission denied]
>
>
> it looks like I can't ls the files.
>
> Any help would be greatly appreciated.

Just so you all can see ls and gs have the same permissions

[root at localhost tmp]# ls -l /bin/ls
-rwxr-xr-x 1 root root 95116 Jul 21 18:17 /bin/ls
[root at localhost tmp]# ls -l /usr/bin/gs
-rwxr-xr-x 1 root root 8424 Sep 13 07:48 /usr/bin/gs




More information about the cups mailing list