Skip to content

ui-kreinhard/go-cups-control-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-cups-control-files

What's this?

It's rather difficult to extract more than the common metadatas from a printing job in cups. Cups generates so called control files which contain a lot more metadatas than the command line tools or the gui can provide. We were especially interested in the start and completion time. On stackoverflow Kurt Pfeifle(https://stackoverflow.com/questions/53688075/how-to-dissect-a-cups-job-control-file-var-spool-cups-cnnnnnn) found out, that there is a tool for reading in these control files.

This tool is a go clone of the testipp tool. Because I was unable to compile cups staticly and I would like to be able later to use it in other go based applications I've rewritten it on a weekend in go :)

What it can (currently) do

It can currently dump nearly all attributes of a control file in json as far as I know

How to use

First, you have to clone and build it - no releases are currently provieded

go build

For analyzing a control file, just run:

./go-cups-control-files /tmp/c00325

For nicer formatting pipe it to jq

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages