[sane-devel] PATCH: Call script per output file from scanimage in batch mode
simon.matter at invoca.ch
Mon Aug 23 12:48:13 UTC 2010
I've just came across a problem where I needed to run scanimage for ADF in
batch mode but wanted to call a script for each page that was scanned.
I know that scanadf provides such functionality but we are using scanimage
for everything and I don't want to change that.
The proposed solution simply ads a --batch-script option which will be
called just before the output file is renamed from its temporary filename
"*.part" to the final name. Every non-zero exit status from the script is
treated as an error. The script itself is called with two args, 1 being
the output file name of the temporary file just written, and 2 being the
May I ask the SANE developers to review it and and commit to SCM if it
Attached patch is against latest stable 1.0.21 but it applies also to
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1736 bytes
Desc: not available
More information about the sane-devel