X and Fluxbox :: Launch a shell script from an icon
Hi all, just a newbie so take this for what it's worth. I couldn't find the solution on the board so I thought I'd post one I stumbled upon. I was having to launch an ATerminal and then type in an alias name to make my java program run. When I tried to run an icon with aterm and the -e switch the terminal would immediately close and nothing would happen. I tried alot of variations but nothing worked. I finally found that I could put the script commands in a text file in my home directory, /home/dsl/myscript, for example. Then the command line in the Icontool becomes "sh /home/dsl/myscript" (no quotes). The program runs normally with no terminal poping up. Well, it worked for me anyway.
running aterm with -e something will close rapidly if the application listed after "-e" is not interactive and does not wait for any input. For example, if you ran the command aterm -e xset b off the aterm window would close almost immeditely because it has finished its work after xset has run.
If it is not an interactive program, there is no need to open aterm to run it anyway, as you've discovered. Any command can be run from a shell script
original here.