[sane-devel] parsing help output of scanimage there has got to be a better way?

Jeff jffry at posteo.net
Mon Sep 18 20:15:20 UTC 2017

On 18/09/17 21:28, Jeff Sadowski wrote:
> The extremely hard part is coming up with a way to parse the stdout of
> "scanimage -h"
> Is there a good way to to this with regular expressions or something.

If you look at the source of gscan2pdf
the _parse_scanimage_output() method does what you want.

It is written in Perl, but PHP is not very different.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20170918/d0e34afe/attachment.sig>

More information about the sane-devel mailing list