Hi Valerio, valerio writes:
> hi Olaf, > thanks a lot > > Il 06/01/20 13:45, Olaf Meeuwissen ha scritto: >> Hi Valerio, >> [...] >> expr: syntax error: missing argument after "-" >> >> reported on the list in these two threads >> >> >> https://alioth-lists.debian.net/pipermail/sane-devel/2019-November/037275.html >> >> https://alioth-lists.debian.net/pipermail/sane-devel/2019-November/037277.html > > i am reading... > >> sh -x make-policy-file --force --mode udev \ >> --registry /var/lib/iscan-data/clean-files \ >> --out-file policy.out > log.out 2>&1 > > here is: > [...] > + test 0 -ne 1 > + mesg warning: ignoring remaining command line arguments > + basename make-policy-file > + echo make-policy-file: warning: ignoring remaining command line arguments > make-policy-file: warning: ignoring remaining command line arguments This is not a problem. It's caused by the `sh -x` style invocation. > + mesg error: use of --registry requires use of --pkg-vers > + basename make-policy-file > + echo make-policy-file: error: use of --registry requires use of --pkg-vers > make-policy-file: error: use of --registry requires use of --pkg-vers > + exit 2 Oops! My mistake. You need to add a --pkg-vers option with the value of the iscan-data version you have installed. Blindly assuming that is 1.39.1-2 (adjust as necessary!), the command becomes sh -x make-policy-file --force --mode udev \ --registry /var/lib/iscan-data/clean-files \ --pkg-vers 1.39.1-2 \ --out-file policy.out > log.out 2>&1 >> If the policy.out file is not empty, please attach that too. > > i am sorry, but i don't know where to find it... It should be in the directory you ran the command from, i.e. `pwd`, but your invocation errored out well before it started writing anything :-/ Hope this helps, -- Olaf Meeuwissen, LPIC-2 FSF Associate Member since 2004-01-27 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13 F43E B8A4 A88A F84A 2DD9 Support Free Software https://my.fsf.org/donate Join the Free Software Foundation https://my.fsf.org/join
