Hi emninger
The terminal closes because the command has finished running. It works with htop because it's still running. The
second you tell htop to quit, the terminal closes. What you need is something that keeps running after inxs
completes its task. Here are a couple of examples using the ls command:
aterm -e sh -c "ls; stty -echo; while true; do sleep 1; done" &
After ls completes, echo is turned off so that keyboard input won't scroll the screen. Then an endless sleep loop
executes keeping the terminal open. Click the X button to close the terminal.
aterm -e sh -c "ls; exec sh" &
In this example, after ls completes, it invokes a new shell which gives you a command prompt keeping the window
open. You can now execute other commands from the window. Type exit or click the X button to close the window.