LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux
User Name
Password
DamnSmallLinux This forum is for the discussion of DamnSmallLinux.

Notices


Reply
  Search this Thread
Old 05-30-2006, 08:54 PM   #1
lantian2004
LQ Newbie
 
Registered: May 2006
Posts: 6

Rep: Reputation: 0
Exclamation How to create a desktop icon to open a script in aterm?


It has been a while since I have used linux, but just worked on the development of some pretty neat financial software and using DSL to run it easily in VmWare.

Anyways, I have 3 scripts that launch my server apps. As of right now I have to open an aterm window then enter /path/script.sh and then open another window and repeat. I have to have the term windows open since they show heartbeats and etc.

Anyways, what i can NOT figure out, and been at this for 2 days is how to create a desktop link that will automatically launch my script in an aterm window.

I have created the desktop lnk's and use Type: program and my command has been: aterm -T "label" -e /path/script.sh It won't work, the window opens then closes. I have been through every variable of aterm that I can find and no luck. I have been referencing other links that call on scripts and that is how I got the syntax. Also, I am using JWM as the window manager and even tried making a menu item, but that doesn't work.

So, the jist of it is, I can manually open aterm and put in the full path and script and it runs, now how do I make a desktop link that will do that for me?

Nothing on the net about this that I can find.
 
Old 05-31-2006, 02:36 AM   #2
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
i dont know about aterm but in xterm i type in the link

xterm -e '/path/scripts.sh'
 
Old 05-31-2006, 02:44 AM   #3
lantian2004
LQ Newbie
 
Registered: May 2006
Posts: 6

Original Poster
Rep: Reputation: 0
right, well I have tried aterm and xterm using xterm -T "mylabel" -e /path/script.sh

Which SHOULD work, because if I open aterm or xterm and issue that command a window opens up, however if i do it from the desktop, I get a window that pops up and closes, and if i run it in emelfm, my window pops up and closes and it shows an end-of-output message. I have tried messing with the script and such and I get errors, however i ran across one discussion that made me remeber Konsole, and in Konsole you can set a noclose and a working path. I set hte working path in the script, but my theory is that the aterm or xterm window closes faster than my script starts, based on the emelfm output.

Do you use the ' in between your path? Someone had mentioned it but i tried it and got a sytax error back.
 
Old 05-31-2006, 02:46 AM   #4
lantian2004
LQ Newbie
 
Registered: May 2006
Posts: 6

Original Poster
Rep: Reputation: 0
actually, using ' in the path still causes the same thing, a window opens then closes.
 
Old 05-31-2006, 02:47 AM   #5
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
yeah i use the ' ' in my path

try to do : xterm -e '/path/scripts.sh'
 
Old 05-31-2006, 04:15 AM   #6
lantian2004
LQ Newbie
 
Registered: May 2006
Posts: 6

Original Poster
Rep: Reputation: 0
I am still having the same issue. if i open xterm and type the command another window opens and I am good, but if I use my icon, the window opens then closes. i noticed that the script is slow to start and I read elsewhere also that xterm will terminate as soon as the command is complete, so I am assuming that my script goes then it closes before the app actually launches.

I believe I can add an xterm entry into the script itself, any idea on how to do that? I tried and it just opened about 500 xterm windows.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
create a desktop icon in Mandrake 10.1 drevil666 Mandriva 5 06-29-2005 03:13 AM
how do I create an icon on KDE desktop drevil666 Linux - Newbie 3 06-28-2005 08:23 AM
Launch a ncftpput script clicking on desktop icon jmanjohn61 Linux - Newbie 3 03-08-2005 12:04 AM
How to create start tomcat icon on kde desktop? gepesz Linux - Software 2 06-19-2004 08:44 AM
how to create an icon on desktop with ICEWM jj71 Linux - Newbie 2 07-30-2003 07:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux

All times are GMT -5. The time now is 10:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration