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

2017-09-18 Thread Jeff Sadowski
On Mon, Sep 18, 2017 at 2:56 PM, Jeff Sadowski wrote: > > > On Mon, Sep 18, 2017 at 2:15 PM, Jeff wrote: > >> 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 e

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

2017-09-18 Thread Jeff Sadowski
On Mon, Sep 18, 2017 at 2:15 PM, Jeff wrote: > 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

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

2017-09-18 Thread Jeff
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 (https://sourceforge.net/p/gscan2pdf/code/ci/master/tree/

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

2017-09-18 Thread Jeff Sadowski
I am trying to design a web interface like phpsane (developer no longer working on it) It looks like he had issue also with parsing the help output as phpsane didn't work for me. I had created something like phpsane myself a while ago and was using it until I upgraded and I lost my web interface. I

[sane-devel] [PATCH v2] saned: reorganize flags, remove run_mode SANED_RUN_DEBUG

2017-09-18 Thread luizluca
From: Luiz Angelo Daros de Luca Flags like -a, -d and -s have many overlap effects. This patch restricts the effect of flags to a simple action. New -u (user) flag replaces -a optional argument for running saned as a different user. The code that retrieve the user info and drop privileges migra