I have written a simple script to show battery life remaining. I would like to be able to quickly view it with a predefined keybinding or launcher.
xterm -e scriptname should do the trick but the xterm closes when the script finishes, not giving me chance to read the output. How can I keep it open, ideally for a fixed period of time (2 seconds for example)?
Now i've had time to check, neither option works. I assumed one of them would but no. !
Must be something to do with the -e switch, it doesn't matter what command you put afterwards it seems only the first one gets run before the xterm closes.
If I run the script from a terminal I get the same behaviour (ie xterm opens then closes in a flash) but the command is also repeated in the running terminal.