#!/usr/local/bin/andy set flags -m color -r 300 if test $#args -ge 2 { set flags $flags --area=0,0,$args[1],$args[1] } set uri `lpoptions | sed -E 's/.*device-uri=hp:([^ ]+).*/hpaio:\1/' chronic hp-scan -d $uri $flags