On Saturday 22 Jun 2002 22:48, Jesus Arocho wrote:
> Thanks for the reply.  Although I did not understand your last
> paragraph, I did learn a few things from your example.  I did get all
> of the values and the variables were gone when the script ended.  Maybe
> I have been confused all along.  Here is my file:
>
> #!/bin/sh
> PALMTOPCENTERDIR=/opt/Qtopia/qtopiadesktop
> QTDIR=/usr/local/qt
> PATH=$PATH:$PALMTOPCENTERDIR/:$PALMTOPCENTERDIR/lib
> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$QTDIR/lib:$PALMTOPCENTERDIR/:$PALMTOP
>CENTERDIR/lib export QTDIR PALMTOPCENTERDIR PATH LD_LIBRARY_PATH
>
> I expected the variables to retain the new values when the script ends.
>  So, I open a terminal from KDE desktop, run the script, do some work,
> and close the terminal.  Except that the new values only exist for
> whatever process runs from that particular shell.
>
> The question then is, can this be done?

If you want them all the time, add those commands to ~/.bashrc, or if you 
want all users to access them, add them to /etc/profile.
-- 
Mandrake Linux release 8.2 (Bluebird) for i586
AMD Athlon(tm) XP 1600+  512MB   Kernel: 2.4.18-6mdk-pnr-win4lin
KDE: 3.0.1               Qt: 3.0.4       up 11 hours 18 minutes.
~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to