Filter Help

Paul Conklin paul.conklin at cerner.com
Mon Nov 28 06:55:52 PST 2011


> On Nov 24, 2011, at 8:14 PM, Paul Conklin wrote:
> > 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.
>
>
> What OS?
>
> What version of CUPS?
>
> _________________________________________________________
> Michael Sweet, Senior Printing System Engineer, PWG Chair
>
RHEL 5.3 Cups 1.4.7





More information about the cups mailing list