[cups.general] Missing Arguments when Using ACCSNMP

Michael R Sweet msweet at apple.com
Wed Apr 30 16:45:25 PDT 2008


Blake wrote:
> I am setting up a print server at work, and everything is working correctly as far as that goes. However, I want to use accsnmp to keep track of users' page counts. I have used accsnmp in the past with no problems, but since installing the version of cups that came with Ubuntu Hardy Heron (Cups 1.3.7), I have not been able to get it to work. I have gone through the cups error_log, and my best guess is that there is a problem with passing the arguments to the script.
> 
>>From error_log:
> 
> argv[0]="edoras"
> argv[1]="48"
> argv[2]="root"
> argv[3]="Test Page"
> argv[4]="1"
> argv[5]="job-uuid=urn:uuid:2d6396f8-469e-30ce-7469-cd6df8e67849"
> argv[6]="/var/spool/cups/d00048-001"
> 
> However, argv[6] is not being passed to the backend accsnmp for some reason. All of the file permissions seem to be correct. If anyone has any insight on this, I would greatly appreciate the help.

Right, only the first filter (or the backend for a raw job) gets the
file in argv[6].  Otherwise you MUST read from stdin...

-- 
______________________________________________________________________
Michael R Sweet                        Senior Printing System Engineer





More information about the cups mailing list