+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13

how to set environment variable in solaris 10

  1. how to set environment variable in solaris 10

    Hi,
    I am new to Solaris and I am trying to set an environment variable
    related to a software I am trying to install on Solaris 10.
    I gave the command:
    export AC_SERVER_HOME = /export/home/actuate
    When I say echo $AC_SERVER_HOME, I only get a blank line.
    Please let me know where am I going wrong.

    Thanks,
    Ravi


  2. Re: how to set environment variable in solaris 10

    ravykanth@gmail.com wrote:
    > Hi,
    > I am new to Solaris and I am trying to set an environment variable
    > related to a software I am trying to install on Solaris 10.
    > I gave the command:
    > export AC_SERVER_HOME = /export/home/actuate
    > When I say echo $AC_SERVER_HOME, I only get a blank line.
    > Please let me know where am I going wrong.
    >
    > Thanks,
    > Ravi
    >



    export AC_SERVER_HOME = "/export/home/actuate"


  3. Re: how to set environment variable in solaris 10

    On May 26, 8:40 pm, "Richard B. Gilbert"
    wrote:
    > ravyka...@gmail.com wrote:
    > > Hi,
    > > I am new to Solaris and I am trying to set an environment variable
    > > related to a software I am trying to install on Solaris 10.
    > > I gave the command:
    > > export AC_SERVER_HOME = /export/home/actuate
    > > When I say echo $AC_SERVER_HOME, I only get a blank line.
    > > Please let me know where am I going wrong.

    >
    > > Thanks,
    > > Ravi

    >
    > export AC_SERVER_HOME = "/export/home/actuate"



    It didn't work, it says
    =: is not an identifier
    I tried without spaces around the = sign but it says:
    AC_SERVER_HOME=/export/home/actuate: is not an identifier
    I doing all this as root user, I don't know if that matters?


  4. Re: how to set environment variable in solaris 10

    ravykanth@gmail.com wrote:
    > On May 26, 8:40 pm, "Richard B. Gilbert"
    > wrote:
    >
    >>ravyka...@gmail.com wrote:
    >>
    >>>Hi,
    >>>I am new to Solaris and I am trying to set an environment variable
    >>>related to a software I am trying to install on Solaris 10.
    >>>I gave the command:
    >>>export AC_SERVER_HOME = /export/home/actuate
    >>>When I say echo $AC_SERVER_HOME, I only get a blank line.
    >>>Please let me know where am I going wrong.

    >>
    >>>Thanks,
    >>>Ravi

    >>
    >>export AC_SERVER_HOME = "/export/home/actuate"

    >
    >
    >
    > It didn't work, it says
    > =: is not an identifier
    > I tried without spaces around the = sign but it says:
    > AC_SERVER_HOME=/export/home/actuate: is not an identifier
    > I doing all this as root user, I don't know if that matters?
    >


    It does not appear that what you tried is what I reccommended! There
    was no colon in what I wrote!!

    Cut and paste the following line or type it in exactly as written!
    export AC_SERVER_HOME = "/export/home/actuate"



  5. Re: how to set environment variable in solaris 10

    On May 26, 8:58 pm, "Richard B. Gilbert"
    wrote:
    > ravyka...@gmail.com wrote:
    > > On May 26, 8:40 pm, "Richard B. Gilbert"
    > > wrote:

    >
    > >>ravyka...@gmail.com wrote:

    >
    > >>>Hi,
    > >>>I am new to Solaris and I am trying to set an environment variable
    > >>>related to a software I am trying to install on Solaris 10.
    > >>>I gave the command:
    > >>>export AC_SERVER_HOME = /export/home/actuate
    > >>>When I say echo $AC_SERVER_HOME, I only get a blank line.
    > >>>Please let me know where am I going wrong.

    >
    > >>>Thanks,
    > >>>Ravi

    >
    > >>export AC_SERVER_HOME = "/export/home/actuate"

    >
    > > It didn't work, it says
    > > =: is not an identifier
    > > I tried without spaces around the = sign but it says:
    > > AC_SERVER_HOME=/export/home/actuate: is not an identifier
    > > I doing all this as root user, I don't know if that matters?

    >
    > It does not appear that what you tried is what I reccommended! There
    > was no colon in what I wrote!!
    >
    > Cut and paste the following line or type it in exactly as written!
    > export AC_SERVER_HOME = "/export/home/actuate"


    I understand what you are saying, but I tried again now and I am sure
    I did not type the colon in the command
    but in the error message it shows a colon sign.


  6. Re: how to set environment variable in solaris 10

    On Sat, 26 May 2007 18:03:13 -0700, ravykant wrote:

    > On May 26, 8:58 pm, "Richard B. Gilbert"
    > wrote:


    >> Cut and paste the following line or type it in exactly as written!
    >> export AC_SERVER_HOME = "/export/home/actuate"


    That won't work with the proper root shell - /sbin/sh.

    > I understand what you are saying, but I tried again now and I am sure
    > I did not type the colon in the command
    > but in the error message it shows a colon sign.


    Try this instead:

    # AC_SERVER_HOME = "/export/home/actuate"; export AC_SERVER_HOME



  7. Re: how to set environment variable in solaris 10

    On May 26, 9:09 pm, Dave Uhring wrote:
    > On Sat, 26 May 2007 18:03:13 -0700, ravykant wrote:
    > > On May 26, 8:58 pm, "Richard B. Gilbert"
    > > wrote:
    > >> Cut and paste the following line or type it in exactly as written!
    > >> export AC_SERVER_HOME = "/export/home/actuate"

    >
    > That won't work with the proper root shell - /sbin/sh.
    >
    > > I understand what you are saying, but I tried again now and I am sure
    > > I did not type the colon in the command
    > > but in the error message it shows a colon sign.

    >
    > Try this instead:
    >
    > # AC_SERVER_HOME = "/export/home/actuate"; export AC_SERVER_HOME



    Now, I get AC_SERVER_HOME: not found


  8. Re: how to set environment variable in solaris 10

    On May 26, 9:12 pm, ravyka...@gmail.com wrote:
    > On May 26, 9:09 pm, Dave Uhring wrote:
    >
    > > On Sat, 26 May 2007 18:03:13 -0700, ravykant wrote:
    > > > On May 26, 8:58 pm, "Richard B. Gilbert"
    > > > wrote:
    > > >> Cut and paste the following line or type it in exactly as written!
    > > >> export AC_SERVER_HOME = "/export/home/actuate"

    >
    > > That won't work with the proper root shell - /sbin/sh.

    >
    > > > I understand what you are saying, but I tried again now and I am sure
    > > > I did not type the colon in the command
    > > > but in the error message it shows a colon sign.

    >
    > > Try this instead:

    >
    > > # AC_SERVER_HOME = "/export/home/actuate"; export AC_SERVER_HOME

    >
    > Now, I get AC_SERVER_HOME: not found



    Thanks a lot, it worked, I had to remove the spaces around the = sign.
    This is what worked:
    AC_SERVER_HOME="/export/home/actuate";export AC_SERVER_HOME


  9. Re: how to set environment variable in solaris 10

    ravykanth@gmail.com wrote:
    > On May 26, 8:58 pm, "Richard B. Gilbert"
    > wrote:
    >
    >>ravyka...@gmail.com wrote:
    >>
    >>>On May 26, 8:40 pm, "Richard B. Gilbert"
    >>>wrote:

    >>
    >>>>ravyka...@gmail.com wrote:
    >>>
    >>>>>Hi,
    >>>>>I am new to Solaris and I am trying to set an environment variable
    >>>>>related to a software I am trying to install on Solaris 10.
    >>>>>I gave the command:
    >>>>>export AC_SERVER_HOME = /export/home/actuate
    >>>>>When I say echo $AC_SERVER_HOME, I only get a blank line.
    >>>>>Please let me know where am I going wrong.
    >>>>
    >>>>>Thanks,
    >>>>>Ravi
    >>>>
    >>>>export AC_SERVER_HOME = "/export/home/actuate"
    >>>
    >>>It didn't work, it says
    >>>=: is not an identifier
    >>>I tried without spaces around the = sign but it says:
    >>>AC_SERVER_HOME=/export/home/actuate: is not an identifier
    >>>I doing all this as root user, I don't know if that matters?

    >>
    >>It does not appear that what you tried is what I reccommended! There
    >>was no colon in what I wrote!!
    >>
    >>Cut and paste the following line or type it in exactly as written!
    >>export AC_SERVER_HOME = "/export/home/actuate"

    >
    >
    > I understand what you are saying, but I tried again now and I am sure
    > I did not type the colon in the command
    > but in the error message it shows a colon sign.
    >


    login: rbg
    Password:
    Last login: Fri May 25 01:13:33 from 192.168.1.103
    Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001
    sunblok_$ AC_SERVER_HOME=/export/home/actuate
    sunblok_$ export AC_SERVER_HOME
    sunblok_$ echo $AC_SERVER_HOME
    /export/home/actuate
    sunblok_$

    or
    SunOS 5.8

    login: rbg
    Password:
    Last login: Sat May 26 21:32:24 from 192.168.1.103
    Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001
    sunblok_$ export AC_SERVER_HOME=/export/home/actuate
    sunblok_$ echo $AC_SERVER_HOME
    /export/home/actuate
    sunblok_$


  10. Re: how to set environment variable in solaris 10

    On Sat, 26 May 2007 17:37:49 -0700, ravykant wrote:

    > Hi,
    > I am new to Solaris and I am trying to set an environment variable related
    > to a software I am trying to install on Solaris 10. I gave the command:
    > export AC_SERVER_HOME = /export/home/actuate When I say echo


    No space between variable and = and setting
    eg:

    export AC_SERVER_HOME=/export/home/actuate

    > $AC_SERVER_HOME, I only get a blank line. Please let me know where am I
    > going wrong.
    >
    > Thanks,
    > Ravi


    --
    Bruce

    "The internet is a huge and diverse community and
    not every one is friendly"
    http://www.ytc1.co.uk


+ Reply to Thread
Page 1 of 2 1 2 LastLast