xp is a command-line utility that takes all arguments and executes them as a command by itself, then pops up the results.
Version: 1.1xp is a command-line utility that takes all arguments and executes them as a command by itself, then pops up the results using kdialog. xp's purpose is to make it easy to see the results of a program without starting a terminal.
License: GPL v3
Operating System: Linux
I suggest having the run command applet on one of your KDE bars if you want to use this because it was really that applet that inspired this script. This script adds more convenience to the run applet.
No, it makes no sense at all to run this in command line, but embedded in other scripts it may if you want to pop up a dialog. (I did for my apcupsd onbattery script to pop-up a message about it).
This script uses the command:
kdialog --textinputbox "" "`command`" --title "command" > /dev/null
to do it's dirty work. It's main responsibility is to take the arguments and convert them into a string to be passed to the above command. Then, it's purpose in life is complete.
Every argument given passed into this script will be considered the command string. By command string, I mean the command and all it's arguments. That is, if I where to type: "xp sudo genlop -c" then "sudo genlop -c" would be the command string. This way, the user isn't required to quote the command string his or herself. This may be a bogus philosophy, but it's not impossible to change this script to operate differently.