Filter Help

Paul Conklin paul.conklin at cerner.com
Thu Nov 24 17:14:33 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.




More information about the cups mailing list