Launch a shell script from an icon


Forum: X and Fluxbox
Topic: Launch a shell script from an icon
started by: Merlinson

Posted by Merlinson on June 24 2006,03:18
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.  :p
Posted by mikshaw on June 24 2006,04:33
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

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.