Results 1 to 5 of 5

Thread: Can't change $PATH

Hybrid View

  1. #1
    Join Date
    Dec 2002
    Location
    Bath
    Posts
    24

    Angry Can't change $PATH

    Trying to change the path so it includes my /var/hack directory.
    if i, echo $PATH ,i get /bin:/sbin:/tvbin:/devbin all that seems ok, this is what i am doing to add my /var/hack directory .

    cd /
    mount -o remount,rw /
    /var/hack/joe .profile
    now on the first line of .profile im writing
    export PATH=$PATH:/var/hack
    ctrl k then x to save
    mount -o remount,ro /
    sync
    exit
    i telnet backin and echo $PATH ,but my hack dir still not in the path, any help???

  2. #2
    Join Date
    Oct 2001
    Location
    Out West
    Posts
    3,171
    Put quotes around it like this:


    export PATH="$PATH:/var/hack"

  3. #3
    Join Date
    Dec 2002
    Location
    Bath
    Posts
    24

    Talking thankyou

    cheers bubblelamp

  4. #4
    Join Date
    Dec 2002
    Location
    Bath
    Posts
    24

    still not working

    hi bubblelamp , still no joy, tried
    export PATH="$PATH:/var/hack"
    on the .profile , this file some time deletes it's self and is no longer there , any other help would be great
    rob

  5. #5
    Join Date
    Dec 2002
    Location
    Bath
    Posts
    24

    still not working

    hi bubblelamp , still no joy, tried
    export PATH="$PATH:/var/hack"
    on the .profile , this file some time deletes it's self and is no longer there , any other help would be great
    rob

Posting Permissions

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