Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-30-2007, 06:24 PM   #1
Registered: Mar 2006
Location: UK
Distribution: Ubuntu Feisty
Posts: 272

Rep: Reputation: 30
Writing a bash script.

Apologies if this post is in the wrong forum, but I was wondering if I could have a little help in writing a bash script to launch Limewire from my desktop. Basically this is what I need to do, but I'm not (at all) proficient in programming so need the correct format:
1. I'm using XGL so need to invoke and as Limewire is java need to export the awt toolkit.
2. Change directory into the Limewire folder.
3. Launch Limewire, with /usr/bin/java -jar Limwire.jar

so far I've got
export AWT_TOOLKIT=MToolkit
cd /home/graham/Limewire
/usr/bin/java -jar Limewire.jar
Which obviously (!) doesn't work. Any pointers are much appreciated.
Old 03-31-2007, 07:43 AM   #2
Registered: Oct 2004
Location: UK
Distribution: Ubuntu/Kubuntu
Posts: 249

Rep: Reputation: 30
I'm a bit confused by this, if you cd to '/home/graham/Limewire' is there not just a shell script named '' or similar? I thought Limewire provided a shell script to check java locations etc and then launched Limewire?

This also might be down to my own naiveness here but I don't really understand why using XGL means you need to specify the AWK toolkit.
Old 03-31-2007, 12:39 PM   #3
Registered: Mar 2006
Location: UK
Distribution: Ubuntu Feisty
Posts: 272

Original Poster
Rep: Reputation: 30
Thanks for your reply.
There is a script called yes. However, since I updated my java, this gives the error
Error: Couldn't find per display information
Running Limewire by executing the jar file in the Limewire folder runs OK however (don't know why) but only if you execute it from within in the folder, hence the need to change directory.

You need to export the awk toolkit otherwise Limewire just displays as a blank box. See here

So does anybody know what I need to add to my script?

Last edited by lebabyg; 03-31-2007 at 12:40 PM.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash (help writing script) lebabyg Linux - General 7 07-04-2006 06:22 PM
writing a bash script poiuytrewq Linux - Newbie 2 10-07-2004 11:26 PM
Help writing a pinging bash script dehuszar Linux - Software 3 06-18-2004 03:03 PM
Writing to a file - Bash script Skute Programming 2 03-15-2004 05:41 AM
writing bash script ankitgdit Programming 4 08-19-2003 07:47 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:51 AM.

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