Re: setting default scanner

From: Henning Meier-Geinitz (hmg-ml@gmx.de)
Date: Sun Jan 21 2001 - 05:57:15 PST

  • Next message: SCC: "scanning to cd-rom"

    Hi,

    On Sun, Jan 21, 2001 at 01:07:33PM +0100, Remco Meeder wrote:
    > how do I set a default device? the environment setting doesn't work for
    > scanimage or xscanimage.

    For scanimage it works for me:

    export SANE_DEFAULT_DEVICE="mustek:/dev/sg0"
    scanimage -T (scanner starts to scan)
    export SANE_DEFAULT_DEVICE="pnm:0"
    scanimage -T
    scanimage: sane_start: Invalid argument
    (--filename is missing, so it uses the pnm backend)

    > I don't like having to type --device-name=microtek2:/dev/sgc the whole
    > time.....

    Another way would be to write a short shell script. For xscanimage amd
    pnm:0 e.g.:

    #!/bin/sh
    xscanimage pnm:0

    Bye,
      Henning

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
    



    This archive was generated by hypermail 2b29 : Sun Jan 21 2001 - 07:13:28 PST