Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Launch a shell script from an icon, aterm disappears before it runs< Next Oldest | Next Newest >
Merlinson Offline





Group: Members
Posts: 1
Joined: June 2006
Posted: June 24 2006,03:18 QUOTE

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
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: June 24 2006,04:33 QUOTE

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


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
1 replies since June 24 2006,03:18 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Launch a shell script from an icon

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code