3 # Purpose: prompt for command via Xdialog and execute it afterwards
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.
7 # Latest change: Fre Jän 07 11:46:02 CET 2005 [mika]
8 ################################################################################
11 trap "rm -f $tempfile" 0 1 2 5 15
14 --title "INPUT BOX" --clear \
16 "run command:" 0 0 2> $tempfile
20 COMMAND=$(cat "$tempfile")
24 echo "Trying to run: $COMMAND"
27 echo "Cancel pressed.";;
30 ## END OF FILE #################################################################