2 # Filename: grml-exec-wrapper
3 # Purpose: simple but smart program execution wrapper
4 # Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2 or any later version.
7 ################################################################################
9 # use Xdisplay only if present and running under X:
11 if type -a Xdialog 1>/dev/null 2>&1 && test -n "$DISPLAY" ; then
12 Xdialog --title "grml-exec-wrapper" --msgbox "$1" 0 0 0
19 display_info "Usage: $0 <program> [<arguments>]"
26 # make sure to support 'grml-exec-wrapper sudo wireshark' as well:
31 if type -a "$PROG" 1>/dev/null 2>&1 ; then
35 display_info "Sorry: ${PROG} not available.
37 Looks like the grml flavour you are using does not ship ${PROG}. :(
39 You can search for ${PROG} executing:
41 apt-get update && apt-cache search ${PROG}
47 ## END OF FILE #################################################################