How to modify $PATH variable

Hello,
I'm having problems editing my $PATH variable.
I've created a ".profile" with this line
export /my_path:$PATH
But when I launch Terminal again, I get this error:
-bash: export: `/my_path:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin': not a valid identifier
Is there something that I am missing? Or is there another easier way to edit my $PATH variable?
Cheers!
Max

I'm having problems editing my $PATH variable.
I've created a ".profile" with this line
export /my_path:$PATH
But when I launch Terminal again, I get this error:
-bash: export: `/my_path:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin': not a valid identifier
Is there something that I am missing? Or is there another easier way to edit my $PATH variable?
export PATH="/my_path:$PATH"
Also note, that bash will look for 1 of 3 initialization files
.bash_profile
.bash_login
.profile
In that order, and will use the first one it finds and then stop looking. If you also have a .bashrc file, you would source that in your shell initialization file
source $HOME/.bashrc
By the way, Terminal, Unix, and command line command questions are best asked in the Mac OS X Technologies > Unix Forum
<http://discussions.apple.com/forum.jspa?forumID=735>

Similar Messages

  • How to put path variables into a jar?

    Hey,
    I'm writing a Java prg, that needs some path variables for the JVM. I used to
    pass them over to the JVM each time at start up. Since this solution seems
    to me slightly complex I wonder if there's no other solution like e.g. placing
    them into a .jar's manifest so that the jar has them already - might this be
    possible?
    /usr/local/java/current/bin/java
    -Djava.library.path=/mnt/.../jdk1.5.0_05/jre/lib/i386/client:/usr/.../jdk1.5.0_05/jre/lib/i386:/usr/local/java/jdk1.5.0_05/jre/../lib/i386:/usr/... -cp /mnt/.../JRI.jar:/mnt/.../apache.poi/poi-2.5.1-final-20040804.jar:/mnt/.../CSV/ostermillerutils_1_06_00.jar mainGUI.FrameMain /mnt/.../workspace/project/In case it might also be possible using just a jar, I would appreciate
    some links on how to do that, TIA!!!

    Well I thought about that, since I'm working under linux a start.sh script serves
    qutie well. I'd like to use the prg also under windows but thought a start.bat
    might rather be discouraged?!
    I thought about writing an installer or just using one of the already existing installer projects, to set up those paths in the manifest of the jar directly each time it get installed - the problem is I need these absolute paths, since the prg depends on some another prg, which could be situated on a different position depending on the system and installation...
    Thus I'd like to know, is it possible to set path variables in a manifest's jar at all?
    Is this still a bad idea? why?
    Since this is the first time I try to do things like that, what might be an elegant solution for that issue?

  • Bash/terminal: how to save PATH variable

    I've followed the instructions here and elsewhere:
    http://www.linuxheadquarters.com/howto/basic/path.shtml
    I've set the PATH variable in ~/.profile and in .bashrc, but everytime I close terminal and re-open it, the changes don't take effect. What else would I need to do?

    Personally, I don't have a .profile, what I have is .bash_profile, which I created as Plain Text using TextEdit, and added the stuff I wanted. Here's the sum total of that file:
    PATH=$PATH:"/Developer/Tools/"
    export PATH
    PAGER="less -ERmX~"
    export PAGER
    alias locoup='sudo /usr/libexec/locate.updatedb'
    alias octop='stat -f%#Op'
    PS1='NoobiX:\w \u\$ ' ;
    I must admit I no longer remember WHY some of those items are there. Anyway, when I check my PATH in bash, I get this:
    NoobiX:~ francine$ echo $PATH
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Developer/Tools/
    So Developer Tools is indeed in my PATH, and I can use the items I've got there easily.
    Francine
    Francine
    Schwieder

  • How to modify global variable in a function?

    Hello,
    I want to modify a globalvariable in a function, at first I did it this way:
    class Global_output_class
    GlobalDim("Correlation_Status,fail_part,End_Exp")
    dim pouet
    Correlation_Status = 12
    Call Correlation()
    pouet = Correlation_Status
    Function Correlation()
    Dim Global_output_class_sub
    Set Global_output_class_sub = new Global_output_class
    Correlation_Status = 1
    fail_part = 2
    End_Exp = 3
    Global_output_class_sub.CorrelationStatus = Correlation_Status
    Global_output_class_sub.failpart = fail_part
    Global_output_class_sub.EndExp = End_Exp
    set Correlation = Global_output_class_sub
    End function
    In this case: correlation_status receive the value 12, then I go to my function correlationn() where it became 1
    Then it goes out of the subfunction and takes the previous value from the program(12) ( I dont want that)
    To solve the problem I made it this way:
    class Global_output_class
    public CorrelationStatus
    public failpart
    public EndExp
    end class
    GlobalDim("Correlation_Status,fail_part,End_Exp")
    Correlation_Status = 12
    Set Global_Output = Correlation()
    Correlation_Status = Global_Output.CorrelationStatus
    fail_part = Global_Output.failpart
    End_Exp = Global_Output.EndExp
    pouet = Correlation_Status
    Function Correlation()
    Dim Global_output_class_sub
    Set Global_output_class_sub = new Global_output_class
    Correlation_Status = 1
    fail_part = 2
    End_Exp = 3
    Global_output_class_sub.CorrelationStatus = Correlation_Status
    Global_output_class_sub.failpart = fail_part
    Global_output_class_sub.EndExp = End_Exp
    set Correlation = Global_output_class_sub
    End function
    This way my global value are recopied in themselves after leaving the subprogram
    I got a lot of variables, is there any easier way so the global variable modified in a function keep the value after leaving the function?
    Thanks for help,
    Fred
    Solved!
    Go to Solution.

    Hi Fred,
    it is possible to use a global defined variable but the better way is to use to use a funtion call (or procedure call) with parameters. Please find first the good solution for a funcion call with parameter and the sub-optimal way with an global valiable:
    dim oParameter
    set oParameter = new cGlobal_output_class
    oParameter.Correlation_Status = 12
    msgbox "Correlation_Status before Call Correlation: " & oParameter.Correlation_Status
    Call Correlation(oParameter)
    msgbox "Correlation_Status after Call Correlation: " & oParameter.Correlation_Status
    Function Correlation(oPara)
    msgbox "Correlation_Status in the FUNCTION before change: " & oPara.Correlation_Status
    oPara.Correlation_Status = 1
    oPara.fail_part = 2
    oPara.End_Exp = 3
    msgbox "Correlation_Status in the FUNCTION after change: " & oPara.Correlation_Status
    End function
    class cGlobal_output_class
    dim Correlation_Status,fail_part,End_Exp
    end class
    call GlobalDim("oPouet")
    dim oPouet
    set oPouet = new cGlobal_output_class
    oPouet.Correlation_Status = 12
    msgbox "Correlation_Status before Call Correlation: " & oPouet.Correlation_Status
    Call Correlation()
    msgbox "Correlation_Status before Call Correlation: " & oPouet.Correlation_Status
    Function Correlation()
    msgbox "Correlation_Status in the FUNCTION before change: " & oPouet.Correlation_Status
    oPouet.Correlation_Status = 1
    oPouet.fail_part = 2
    oPouet.End_Exp = 3
    msgbox "Correlation_Status in the FUNCTION after change: " & oPouet.Correlation_Status
    End function
    class cGlobal_output_class
    dim Correlation_Status,fail_part,End_Exp
    end class
    Greetings
    Walter

  • How to modify substitution variables such as #REGION_POSITION_02#,etc.

    Hi,
    I'm working with an APEX page template - 'One Level Tabs' in my application.
    I have copied and extended this template to meet the requirements specified by the client by adding a background image on the page.Also I have added 5 regions on the page,each one with a backgroung image each.These images are all png format and are supposed to be transaparent revealing the background image of the page.However,when I ran the page I noticed that these region images appeared on a white background and did not show the image below.
    Is there a way to modify the substitution variables such as #REGION_POSITION_02#,#REGION_POSITION_04#,#REGION_POSITION_05# ,etc. such that the images placed here appear transparent and reveal the back drop underneath?
    Would appreciate it very much if anybody could throw some light on the matter.
    Regards,
    Priya Jetley

    So this is the kind of thing?
    changed the html code in the body of that page template and specified and image as a background to the main html tablePlease post the HTML code (wrap in tags to format properly in the forum).
    in the source of the region specified the '<img src' tag
    This wouldn't give a background image, but place the image in the region content?
    Png format I believe has the ability to be transparent by default.Correct me if I am mistaken.
    PNGs can have full transparency set using binary transparency, or full or partial transparency set using an alpha channel. Do you know which has been used? Is transparency apparent when the images are viewed on their own?
    Again you are recommended to upload a simple example of what you have done to apex.oracle.com. This is the fastest and most reliable way to troubleshoot this type of issue.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to specify a variable in the path prefix of an External HTTP (RFC) connection (in transaction SM59)

    Hi There,
    Please can someone tell me how to specify a variable in the  path prefix of an External HTTP (RFC) connection in transaction SM59?
    For example if my path prefix is /invoke/test/example?input=XYZ; how do I replace "XYZ" with a variable so that I can pass in any value after "=" ?
    Thanks,
    Brendon

    Hi,
    This is SAP Business one system administration forum. Please find correct forum and repost above discussion to get quick assistance.
    Please close this thread here with helpful answer.
    Thanks & Regards,
    Nagarajan

  • Without hard coding it how can I add a java app to my path variable

    I'm not sure how to phrase this but I wrote a quick utility program and I wrote a quick batch file to call the program. I put the batch file in a folder in the path variable and put the folder containing the classes in there as well. I was hoping that when I called the batch it would check the relative location and see the folder for the utility program and run it. However I got an error message acting like it couldn't find the class. I think it's checking the current directory I'm in, not the current directory of the batch file that's actually calling it. I don't want to hardcode the path into the batch file since it's mobile and could be run from different folders so I was wondering how can I fix this?

    I am assuming you got a ClassNotFoundException?
    echo the command your batch file is running to this forum and then I'll be able to help you

  • How to set the path variable on Windows ME?

    I want to get a friend of mine to start using java the only problem is that we both dont know how to set the path variable in Windows ME. I cant seem to find any instructions on it for ME. So if someone could please tell me how or give me a llnk to directions for Windows ME. Thanks.

    Refer to the Installation Instructions for the package that you installed - I believe #5 if the instructions has the information. A link to the instructions is at the page you installed from.

  • How to get a replacement path variable working in same query

    Hi All
    I have a query in which the user enters a value for the 0fiscper variable. Our users want to display for the last 12 months the previous year same period sales.
    I do this by putting a value range offset restriction on 0fiscper varianle to -12 to 0fscper variable value. I have 0fiscper as drill down on the rows.
    Fiscal Year period                LY Month Sales
    010/2010                                  9999.89
    011/2010                                    8888.99
    To get the LY Month Sales I would like to set up a replacement path variable on 0fiscper so if the value of 0fiscper on the
    row is available in the replacement path var I can offset it ti -12 to get the LY Month Sales.
    Can someone share ideas how I can set up this replacement path variable.
    Thanks
    Karen

    Hi,
      Why u want to go for replacement path. You can attain your result bu just offsetting the fiscyear period variable.
    Regards,
    Raghavendra.

  • How to unset or remove ORACLE_HOME from PATH variable in UNIX

    Hi,
    below is my PATH on one of the server :
    oracle@bccdb1d[DUMMY] /optware/sybase/work/jaya => echo $PATH
    /optware/oracle/10.2.0.2_Q407/bin:.:/usr/local/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/FXboks/bin
    Now I don't want the ORACLE_HOME path to be there in $PATH. I tried below steps to unset it but wasn't successful:
    oracle@bccdb1d[DUMMY] /optware/sybase/work/jaya => export ORACLE_HOME=''
    oracle@bccdb1d[DUMMY] /optware/sybase/work/jaya => echo $PATH
    /optware/oracle/10.2.0.2_Q407/bin:.:/usr/local/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/FXboks/bin
    Now even after unsetting it I still see the ORACLE_HOME within the PATH variable.
    Need help.
    Thanks,
    Kalyan

    either edit your .profile in your home location...vi .profile --this will then be in effect each and every time you login
    or make a new profile that you can use such as vi .temp_profile - and then add what ever variables you want to take effect and then execute the profile eg. <. .temp_profile> --this will allow you to choose how you want the $PATH variable to react
    or you can reset just the path to what you want by doing: export PATH=<what ever you want listed in your path variable> --this will need to be done each time after logging in                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How do I edit value of PATH variable in AIX?

    How do I edit value of PATH variable in AIX?

    Hi Sandy,
    You need to edit .profile file from the users home directory...
    (Please note DOT before filename, which make the file hidden...)
    use "ls -a" command to list hidden files.
    its a basic question, why don't you search google for such issues.
    It will also help you to understand the system better...
    Regards.
    Rajesh Narkhede

  • How to use Replacement Path Variables to perform Date Calculations

    Hi Experts,
    Can anyone make me clear about:How to use Replacement Path Variables to perform Date Calculations???????
    Thankyou in advance..
    shankar

    In left panel select the time Dimension
    Then hit new variable in that
    give the Name and Description for the Variable
    In processing by hit Replacement Path
    In reference characterisitcs use Calendar Day...
    As ur intention is to use it for Date
    Then in adjacent tab use
    Replace variable with Query / Variable
    Then u can use Offset length and offset start for controoling the display of your variable.
    Use as single, multiple single, interval, selection option as uwish
    HIt okey
    and you are good to go

  • N00b question...   how do I edit my $PATH variable?

    Hi everyone. I am trying to play Nethack in terminal, but I think I need to be able to
    'Edit your $PATH variable for your shell to include /usr/games. '
    But I have no idea how to do that. Can someone please help>
    Thanks,.
    R

    For BASH:
    export PATH=$PATH:/usr/games
    for this session. If you want it every login add that line to the end of your ~/.bashrc file (create it if needed).
    For TCSH:
    setenv PATH=$PATH:/usr/games
    the file would be ~/.cshrc
    Roger

  • How to pass session variable value with GO URL to override session value

    Hi Gurus,
    We have below requirement.Please help us at the earliest.
    How to pass session variable value with GO URL to override session value. ( It is not working after making changes to authentication xml file session init block creation as explained by oracle (Bug No14372679 : which they claim it is fixed in 1.7 version  Ref No :Bug 14372679 : REQUEST VARIABLE NOT OVERRIDING SESSION VARIABLE RUNNING THRU A GO URL )
    Please provide step by step solution.No vague answers.
    I followed below steps mentioned.
    RPD:
    ****-> Created a session variable called STATUS
    -> Create Session Init block called Init_Status with SQL
        select 'ACTIVE' from dual;
    -> Assigned the session variable STATUS to Init block Init_Status
    authenticationschemas.xml:
    Added
    <RequestVariable source="url" type="informational"
    nameInSource="RE_CODE" biVariableName="NQ_SESSION.STATUS"/>
    Report
    Edit column "Contract Status" and added session variable as
    VALUEOF(NQ_SESSION.STATUS)
    URL:
    http://localhost:9704/analytics/saw.dll?PortalGo&Action=prompt&path=%2Fshared%2FQAV%2FTest_Report_By%20Contract%20Status&RE_CODE='EXPIRED'
    Issue:
    When  I run the URL above with parameter EXPIRED, the report still shows for  ACTIVE only. The URL is not making any difference with report.
    Report is picking the default value from RPD session variable init query.
    could you please let me know if I am missing something.

    Hi,
    Check those links might help you.
    Integrating Oracle OBIEE Content using GO URL
    How to set session variables using url variables | OBIEE Blog
    OBIEE 10G - How to set a request/session variable using the Saw Url (Go/Dashboard) | GerardNico.com (BI, OBIEE, O…
    Thanks,
    Satya

  • Replacement Path Variable with Another Variable

    Hi,
    I am currently trying to create a report that would need me to have the same values for different characteristics (e.g. clearing date, posting date, net due date). I have seen that there is a way in the replacement path variable that would replace its value with another variable that is ready for input. I also looked into SAP help but I can't seem to figure out on how to do it specifically. Does anyone know a step-by-step process on how to do this? How does this work?
    Thank you in advance!

    take an e.g.
    u have characteristic say ch1
    u want to restrict it with replacement path variable
    first of all create a variable var1
    click what it is based upon for e.g. 0calday, 0material etc.
    make it user entry variable
    select single or multiple entry
    make it mandatory
    save it and hit okey
    click on ch1
    right click and say restrict
    in new window create a new variable
    give its name and technical name
    processing path is replacement path
    go to next tab of replacement path
    select several ooptions
    replace variable with another variable
    select a variable called var1
    change the offset length and offset start with different parameters.
    hit okey
    this way u have restricted ch1 with replacement path variable var1
    now when u run report u have to enter value of var1
    which will then further feeded to ch1
    this way u can create replacement path variables at lots of instances and then u can always feed the value from var1 at different time
    make sure as this ur requirement is date
    try to use 0calday as reference infoobject all the times....

Maybe you are looking for

  • AFS grid value/valuation type not picked in sales order cost estimate

    Hi Experts, We have different valuation types in the material master. This is part of the AFS, where each grid value is a valuation type. While making a sales order cost estimate and in one sales order item, we have 3 grid values (valuation types), s

  • SOAP envelope format

    Hi, I must make sample code of web service calls for PHP and Java to our clients. So far I have got it working with PHP but I have trouble to successfuly call web service in Java. I have generated stub files with wscompile -keep -gen:client config.xm

  • Time Capsule backing up all my media again after Mavericks upgrade

    Hello. Since I've upgraded to Mavericks my Time Capsule is trying to Backup all my media since location of iTunes Library (media) changed in iTunes 11.  The problem is I have a huge music library (over 300GB), therefore I don't and won't let my Time

  • Audiobooks not playing in proper order

    I have an iPod Classic, 80GB, on up to date software (v 1.1.2, according to iTunes, which is on v 12.1.0.50). I have several audiobooks, some of which were loaded into iTunes from CDs rather than being downloaded from the iTunes Store. The iPod appar

  • XML Message is status scheduled on R/3 side

    Hi All While trying to send message via outbound ABAP proxy i am getting my XML message in status "scheduled (commit work follows)" on R/3 side ... My queues are also registered .. I tested the HTTP connection to XI server also and it seems fine .. w