PDA

View Full Version : Shell Script - How To??



fuqjak
12-28-2001, 02:53 PM
How do I create a shell script to run the needed directory commands for ShowEQ 4.0 to funtion properly (the export QTDIR=/usr.......)

I hate having to type it in every time I want to use it but I am still new to linux - in fact, ShowEQ is the reason I am trying to learn it.

Thanks for the help and please don't flame a newbie.

Fuqjak

ml2517
12-28-2001, 03:21 PM
I just created a file named runseq.sh and threw it in my /usr/local/share/showeq directory.

Just create the file using the editor and throw this inside of it:

---------------

export QTDIR=/usr/local/qt-2.3.2
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

/usr/local/share/showeq/showeq

----------------

I am at work right now.. so I can't really make sure this is totally correct. I then created a shortcut for my task bar that does the following.

sh /usr/local/share/showeq/runseq.sh

(And I chose the option to run it in a command window)

Someone that is a little more unix literate could probably come up with something better but this works fine for me.

fuqjak
12-28-2001, 04:53 PM
After messing around with it a little I was able to add a favorite to my menu and it works great.

Thanks for the tip!