Find the answer to your Linux question:
Results 1 to 4 of 4
Hi everybody. I'm trying export some variables through one shell than I did, but doesn't work. The shell is : ************************************************** #!/bin/bash export TMAKEDIR=/usr/local/i386/tmake-1.13 export QT2DIR=/usr/local/i386/qt-x11-free-3.3.0b1 export QTEDIR=/usr/local/i386/qt-embedded-free-3.3.3 export TMAKEPATH=$TMAKEDIR/lib/linux-g++ ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    fmn
    fmn is offline
    Just Joined!
    Join Date
    May 2005
    Posts
    3

    exporting vars...


    Hi everybody.

    I'm trying export some variables through one shell than I did, but doesn't work. The shell is :

    **************************************************
    #!/bin/bash
    export TMAKEDIR=/usr/local/i386/tmake-1.13
    export QT2DIR=/usr/local/i386/qt-x11-free-3.3.0b1
    export QTEDIR=/usr/local/i386/qt-embedded-free-3.3.3
    export TMAKEPATH=$TMAKEDIR/lib/linux-g++
    export QTDIR=$QTEDIR
    export PATH=$QTDIR/bin:$PATH
    export LD_LIBRARY_PATH=$QTEDIR/lib:$QT2DIR/lib:$LD_LIBRARY_PATH
    ************************************************** *****

    salved with: exportar.sh
    exec the comands:
    chmod u+x exportar.sh
    ./exportar.sh

    but doesn't work...

    What is wrong???

  2. #2
    Linux Newbie
    Join Date
    Oct 2004
    Posts
    158
    it has to be sourced run it this way so it runs in your current process:
    Code:
    .  ./exportar.sh
    Note the extra dot in front of the command?

  3. #3
    fmn
    fmn is offline
    Just Joined!
    Join Date
    May 2005
    Posts
    3
    thank you...

  4. #4
    fmn
    fmn is offline
    Just Joined!
    Join Date
    May 2005
    Posts
    3
    thank you...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •