Announcement

Collapse
No announcement yet.

$PATH batch problems

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    $PATH batch problems

    #!/bin/sh
    #PATH
    export PATH="$PATH:/home/ant2ne/batch"
    echo $PATH
    bash
    echo $PATH
    This script works, but only for the current terminal session. If I close that terminal or restart the computer I need to rerun the script. How can I make this a perminant PATH location?

    /home/ant2ne/batch is a location that I'd like to store all of my personal batch files. So as to not intermingle them with batches that may have come with other packages
    Registered Linux User: 450747<br />Registered Ubuntu User: 16269

    #2
    Re: $PATH batch problems

    Originally posted by Ant2ne
    How can I make this a perminant PATH location?
    You may add your path to the system-wide PATH setting(s), to be found in /etc/environment or /etc/profile (or the like).

    Comment


      #3
      Re: $PATH batch problems

      Originally posted by UnicornRider
      /etc/environment[
      Just what I needed thanks! 8)
      Registered Linux User: 450747<br />Registered Ubuntu User: 16269

      Comment


        #4
        Re: $PATH batch problems

        UR's solution is fine as long you are the only user of your computer. However, if there are other users, you need to use the "conventional" (i.e. old-fashioned multi-user Unix) solution.

        In your home directory (/home/ant2ne) you should find a file called ".profile". That is where you're SUPPOSED to make changes to your path. But I won't tell the Unix police.

        Comment


          #5
          Re: $PATH batch problems

          Originally posted by askrieger
          In your home directory (/home/ant2ne) you should find a file called ".profile". That is where you're SUPPOSED to make changes to your path.
          And what if I don't have a ".profile" in "/home/ant2ne" ?
          Registered Linux User: 450747<br />Registered Ubuntu User: 16269

          Comment


            #6
            Re: $PATH batch problems

            Use .bashrc BTW, I assume that you have View>"Show Hidden Files" checked in Konq.

            Comment


              #7
              Re: $PATH batch problems

              Originally posted by askrieger
              "conventional" (i.e. old-fashioned multi-user Unix) solution
              Thanks for amending; I knew that I had missed something.

              Comment


                #8
                Re: $PATH batch problems

                Originally posted by askrieger
                I assume that you have View>"Show Hidden Files" checked in Konq.
                no, but you would think that
                sudo kate /home/ant2ne/.profile
                would have done it.
                Registered Linux User: 450747<br />Registered Ubuntu User: 16269

                Comment


                  #9
                  Re: $PATH batch problems

                  Hmm, that's strange. I looked at my home directory and .profile is still there. If you're the only user, you can still make the fix using UR's suggestion.

                  Comment

                  Working...
                  X