On Mon, 27 Jul 2020 11:58:44 +0200, Nicolas George wrote: > This may be an obvious thing, but I cannot find the answer. > > I can scan with: > > scanimage -d "hpaio:/net/deskjet_3050a_j611_series?ip=10.0.1.155" > xsane "hpaio:/net/deskjet_3050a_j611_series?ip=10.0.1.155" > > Where do I write this URL so that tools find it without having to tell > them each time?
It looks simple to me, or am I missing something? Create /usr/local/bin/scanimage with these contents: #! /bin/sh /usr/bin/scanimage -d "hpaio:/net/deskjet_3050a_j611_series?ip=10.0.1.155" Then, $ cd /usr/local/bin $ chmod +x scanimage >From then on, run this command to scan: $ scanimage Because /usr/local/bin is before /usr/bin in $PATH, /usr/local/bin/scanimage takes precedence over /usr/bin/scanimage.