Fail to add a directory to $PATH

Home Page Forums Network Management ZeroShell Fail to add a directory to $PATH

This topic contains 1 reply, has 0 voices, and was last updated by  mlapeyre 11 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #41045

    mlapeyre
    Member

    Dear Fulvio,

    I am trying to add a directory ( /Database/mydir ) to the PATH.

    First I tried to add it in /etc/rc.local : export PATH=”$PATH:/Database/mydir” , but after the system started, my dir was not added to the PATH.

    Then I used /etc/rc.pre, and added “echo $PATH” and “sleep 30” to the script in order to see if my dir was added. I saw on the console that after the message “…Running /etc/rc.pre” my dir was added to the PATH…but after finishing the boot process, again my dir was not in the PATH.

    How can I add permanently a dir to the PATH?

    Thank you for your help in advance, and congratulations for this wonderful software.

    Manuel

    #46534

    imported_fulvio
    Participant

    try to add the line

    echo ‘export PATH=”$PATH:/Database/mydir”‘ >> /etc/profile

    in the file /etc/rc.local or /etc/rc.pre.

    Regards
    Fulvio

    #46535

    mlapeyre
    Member

    It worked!

    Thank you a lot Fulvio.

    Keep enhancing Zeroshell!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.