# Status of CUPS printer queues if type lpstat > /dev/null 2>&1; then if pgrep cups > /dev/null 2>&1; then waitmax 3 lpstat -p echo '---' waitmax 3 lpstat -o|sort fi fi