#! /bin/bash # If lpstat fails or if hp-systray is not installed or whatever, exit silently: lpstat -h localhost -v | cut -d ' ' -f 4 | grep -q '^hp:/' && hp-systray || exit 0