#!/bin/bash COMMAND=$@ $COMMAND [[ $? -ne 0 ]] && zenity --error --text="Failed command: $COMMAND"