Ted Unangst writes: > Once upon a time, I used to scan things like this: > scanimage > scan.pnm > > (I'd usually just pipe it into other commands, but something like > that. Just like it says in the man page.) > > Now the trouble is, the rest of my pipeline is failing because instead > of printing a pnm file, scanimage is printing "Failed cupsGetDevices" > followed by the scan output. pnm files are not supposed to start with > the magic phrase "Failed cupsGetDevices", and so the pnm utilities are > now refusing to operate on my scans. > > Why is this happening? How do I make it stop?
I don't know the cause of the warning or how to fix it, but the fact that it goes to stdout is an upstream bug; see: https://alioth.debian.org/tracker/index.php?func=detail&aid=313851&group_id=30186&atid=410366 Supposedly it has been fixed, but apparently the entire file has since been rewritten (unless I'm misreading the source) so it's not a simple patch to our current port. Workaround in the meantime: pipe through grep -v. Anyone with a better fix, or a way to make the warning simply not appear?