Unset environment variables not commiting, still there when bash restart

I want to remove some environment varibles so i use the unset command
     unset variable
However when I list the varibles using:
     env
The variable seems to be gone but when I restart the bash it comes back again? Any ideas why? And how to resolve this?

Every shell instance has its own environment. Changing the environment in one shell session has no effect on future sessions.
(An exception is a sub-shell, which inherits its parent's environment. For example, if you run a script from an interactive session, the script will start with the interactive session's environment.)
If you want every login session to have a certain environment, you set it in a .bash_profile file. See the bash man page for details.

Similar Messages

  • Up next doesn't seem to work properly with multiple speakers over airplay. The status bar on the computer shows the song playing, but not over airplay. When I restart the song it plays, but the same thing happens when the next song cues up. Any ideas?

    Up next doesn't seem to work properly with multiple speakers over airplay. The status bar on the computer shows the song playing, but not over airplay. When I restart the song it plays, but the same thing happens when the next song cues up. Any ideas?

    Hey briannagrace96,
    Welcome to Apple Support Communities! I'd check out the following article, it looks like it applies to your situation:
    iPod: Appears in Windows but not in iTunes
    http://support.apple.com/kb/ts1363
    You'll want to go through the following troubleshooting steps, and for more detail on each step follow the link to the article above:
    Try the iPod troubleshooting assistant:
    If you have not already done so, try the steps in the iPod Troubleshooting Assistant (choose your iPod model from the list).
    If the issue remains after following your iPod's troubleshooting assistant, follow the steps below to continue troubleshooting your issue.
    Restart the iPod Service
    Restart the Apple Mobile Device Service
    Empty your Temp directory and restart
    Verify that the Apple Mobile Device USB Driver is installed
    Change your iPod's drive letter
    Remove and reinstall iTunes
    Disable conflicting System Services and Startup Items
    Update, Reconfigure, Disable, or Remove Security Software
    Deleting damaged or incorrect registry keys
    Take care,
    David

  • Oracle cache is still there after I restart the Oracle server - can it be?

    Hello,
    My name is Tal and I work for a software company called Mercury.
    We have a strange case in Oracle 9.2.0.6 (running on Solaris 2.9) and I wonder if one of you can help.
    I am running query, this query is doing something like “select * from x where y between z and w”.
    x, y, z and w are parameters which cause the query to be one that scans a lot of data.
    I run the query twice and the first time takes 60 seconds, but the second time takes only 3 seconds.
    I assumed that this is caused by the database cache (block buffers).
    BUT,
    Then I bounced the database (shutdown immediate + startup) and rerun the query.
    It comes back after 3 seconds again!!!
    Can some share some info on this; it looks like Oracle cache is still there after I restart the Oracle server.
         Tal Olier ([email protected]).

    Regarding the buffer cache, it is definitly flushed after database restart.
    There can be many factors causing your case:
    1. The first time you ran the query, some other process was consuming the server resources.
    2. Some other users were running heavy queries.
    3. Sudden Heavy network activities.
    Q: Did the query, in any time, run in 60 seconds again?
    If yes, then further factors should be considered.

  • Changing environment variables not reflected in axis2.

    Hi,
    I am using axis2(1.2).And my problem is that I am trying to call two or more webservice from the same host .Let me explain.I have a web page .Its take some info to serach and also the parameter to which service to call.Suppose there are two service running (A and B).For A, need the following environment to set before calling :
    System.setProperty("javax.net.ssl.keyStore",keyStore);
    System.setProperty("javax.net.ssl.keyStorePassword", keyPwd);
    System.setProperty("javax.net.ssl.keyStoreType",keyType);
    System.setProperty("javax.net.ssl.trustStoreType",trustType);
    System.setProperty("javax.net.ssl.trustStore",trustStore);
    System.setProperty("javax.net.ssl.trustStorePassword",trustPwd);And for B do not required any environment variable.
    When I try to connect the B(clear all the environment) after accessing the A its throw the following exception :
    org.apache.axis2.AxisFault: sun.security.validator.ValidatorException:
    PKIX path building failed:
    sun.security.provider.certpath.SunCertPathBuilderException: unable to find
    valid certification path to requested targetBut if I restart the webserver and try to call B its working but if I try to access A its failed.
    So its seem to me that once the environment is set its not possible to reset it.
    So is there any solution.
    Thanks & Regrads

    i haven't used axis2 specifically, but i would imagine that it provides a way to configure that connection information for a specific webservice connection (as opposed to globally for the jvm). a quick google for "axis 2 custom keystore" found this link: http://shivendra-tripathi.blogspot.com/2010/11/enabling-ssl-for-axis2-service-and.html which shows how to configured an axis2 client with a custom keystore ("Approach 2", at the very end of the article). actually, looking again at that article, it may be configuring a system-wide setting (the Protocol.registerProtocol() call looks to be static). this looks better: http://wso2.org/library/1646 .
    Edited by: jtahlborn on Jul 11, 2011 2:06 PM

  • Environment variables not passed through to player in flexunit 4.1.0-beta3

    fyi, to get flexunit-4.1.0-beta3 FlexUnit4AntTasks invocation of flashplayer to not be rejected by the vncserver, i needed to modify the FlexUnitLauncher to pass through the environment variables to the command environment.
    the reason this is required, i think, is the use of Runtime.exec() directly in CustomPlayerCommand -- in flexunit-4.0.0, the same function was accomplished using the ant executor, which does passthrough by default.
    anyway, curious if anyone else has seen this issue, or if i'm doing something dumb.
    --- flexunit/flexunit-4.1.0-beta3/flexunit-flexunit-da29198/FlexUnit4AntTasks/src/org/flexuni t/ant/launcher/FlexUnitLauncher.java    (revision 7250)
    +++ flexunit/flexunit-4.1.0-beta3/flexunit-flexunit-da29198/FlexUnit4AntTasks/src/org/flexuni t/ant/launcher/FlexUnitLauncher.java    (revision 7251)
    @@ -79,7 +82,13 @@
           command.setSwf(swf);
           if (runHeadless())
    -         command.setEnvironment(new String[]{ "DISPLAY=:" + xvncStart.getCurrentDisplay() });
    +         Map<String, String> env = System.getenv();
    +         List<String> envArgs = new ArrayList<String>();
    +         for (Map.Entry<String, String> entry : env.entrySet()) {
    +            envArgs.add(entry.getKey() + "=" + entry.getValue());
    +         }
    +         envArgs.add("DISPLAY=:"+xvncStart.getCurrentDisplay());
    +         command.setEnvironment(envArgs.toArray(new String[0]));
              LoggingUtil.log("Setting DISPLAY=:" + xvncStart.getCurrentDisplay());

    ok. i went looking for a JIRA link somewhere around here and couldn't find it.  do you have a URL handy?
    there are a couple of other things too:
    you probably want trustDirectory.mkdirs() rather than mkdir() in TrustFile.java
    you probably want CustomPlayerCommand.setLocalTrusted() -- my player command isn't in the machine's path, but i still want to be able to touch the trust file.  So I copied the trustFile.add() stuff from FlashPlayerCommand.launch() into CustomPlayerCommand.launch().  probably a better solution would be refactoring CustomPlayerCommand to be more like FlashPlayerCommand.
    anyway, if you want patches, tell me where to put them and i'll post some.

  • SQLPATH environment variable not read by Sql Developer

    Does anyone know why Sql Developer doesn't seem to read the SQLPATH environment variable? I've googled this situation quite a bit with no luck. Am frankly very confused...How can Sql Developer not have the ability to read from the SQLPATH environment variable?
    Considering all the scripts out there that have been written for Sql*Plus, with the assumption that the SQLPATH variable has been set to allow for multiple directories?
    I feel like I'm just missing something in Tools->Preferences in Sql Developer. I just can't see what it is. As a side note, my overall intention is to enable my team members to run the db build scripts from Sql Developer, rather than Sql*Plus...
    Thanks in advance.

    Hi 917092 ,
    Gary Graham wrote:
    Hi,
    The closest equivalent is Tools|Preferences|Database|Worksheet|Select default path to look for scripts, but supports only a single directory.
    This parameter takes multiple directories. For example in Windows the separation character is ";" . The chooser only allows one directory to be chosen at a time - but multiple paths can be typed in.
    SQLPATH reads the environmental variable (it may not read the windows registry setting).
    set SQLPATH=C:\Documents and Settings\THE_USER\first;C:\Documents and Settings\THE_USER\second
    @first
    (reads first.sql from C:\Documents and Settings\THE_USER\first)
    @second
    (reads second.sql from C:\Documents and Settings\THE_USER\second)
    Is that sufficient?
    If there is a bug to be logged please provide more details:
    Including:
    -OS
    -SQLPATH (environmental variable or set via preferences)
    -worksheet command
    -.sql file / reproducible test case
    -output
    -expected output
    Turloch
    SQLDeveloper Team

  • Variable not defined: '_MR' error when using sub template

    Hi,
    I am creating a check print report. When I had the check layout and the invoice layout on the same template it worked fine. But when I moved the check layout to a sub template then I started getting the error Variable not defined: '_MR' but I dont have any variable '_MR' can some please help me on this.
    Thanks a ton in advance
    Lakshmanan a.

    Hi Lakshmanan
    Its probably worth running the XML Publisher template regenerator program. somehow, I think your templates are out of sync
    Regards
    Tim
    http://blogs.oracle.com/xmlpublisher

  • Changing Environment Variables (not jre path)

    I am writing a setup program which will modify an Environment Variables. I need to add the string ";%PROGRAM_HOME%bin"to the Path variable. The problem lies in appending the new string onto the old one. For instance, say that
    Path=%SystemRoot%\system32;andSystemRoot=C:\WINDOWSIf I get the current Path variable (so I can append to it) I get Path=C:\WINDOWS\system32After appending my new variable I getPath=C:\WINDOWS\system32;%PROGRAM_HOME%\binWhile this will work, problems will arise in the future if changes are made to the SystemRoot variable, since the Path value no longer contains a link to the SystemRoot variable.
    Basically, is there a way to append to Environmental Variables?

    I am writing a setup program which will modify an
    Environment Variables. I need to add the string
    ";%PROGRAM_HOME%bin"to the Path
    variable. The problem lies in appending the new
    string onto the old one. For instance, say that
    Path=%SystemRoot%\system32;andSystemRoot=C:\WINDOWSIf I get the current Path variable (so I can append
    to it) I get Path=C:\WINDOWS\system32After appending my new variable I
    getPath=C:\WINDOWS\system32;%PROGRAM_HOME%\bin[/
    code]
    While this will *work,* problems will arise in the
    future if changes are made to the SystemRoot
    variable, since the Path value no longer contains a
    link to the SystemRoot variable. 
    Basically, is there a way to append to Environmental
    Variables?set PATH=%PROGRAM_HOME%\bin;%PATH%
    (T)

  • Win7 11g  -- Environment variables not set?

    I have an 11g installation on a school harddrive that doesn't seem to have any of the environment variables set properly. Even ORACLE_HOME is not set. How can I fix that situation and how many environment variables need to be defined?
    Also some of the Oracle scripts seem to use the forward-slash rather than the back-slash for paths. Will Win7 care?
    Thanks

    >
    I have an 11g installation on a school harddrive that doesn't seem to have any of the environment variables set properly. Even ORACLE_HOME is not set. How can I fix that situation and how many environment variables need to be defined?
    >
    You can set the following 3 basic environment variable in your system variables list. So that you can connect to database with out manually specifying the variables every time.
    ORACLE_HOME: the ORACLE_HOME variable should be set.
    ORACLE_SID: it is the name of the instance.
    PATH=$ORACLE_HOME/bin : this is the place where your oracle binaries exists.
    >
    Also some of the Oracle scripts seem to use the forward-slash rather than the back-slash for paths. Will Win7 care?
    >
    Windows server uses back-slash
    Unix flavours use forward-slash

  • Ora-7217 sltln environ variable not set..

    Here's the story..
    Oracle 8.1.7 on RHat 6.2..
    Installation unbelievably perfect!!!
    no core dump in any programs like sqlpus, svrmgrl..but..
    trying to start with svrmgrl..connect internal or thru sqlplus as sysdba
    ora-7217--sltln environment var not set
    keeps coming..made sure all the vars are
    set in .profile..any clue what's happening?
    vinny.

    A way to set environment variables to binaries is to specify
    it on the command line. For example:
    LD_LIBRARY_PATH=/usr/mylibs httpd
    If you are using apache, it could be changed in the /etc/init.d/apache
    script.
    If you use a script to startup the server, you can use the same approach.
    I am not sure about the obj.conf file.
    Sun - DTS

  • JAVA_HOME Environment Variable "Not Available"

    I have installed j2sdk 1.4.2_17 for Windows Server 2008 64 bit for an installation of ERP 6.0.  I have installed this in the following directory:
    C:\j2sdk14217x64
    - I have the JAVA_HOME variable (User variable for Administrator and System variable) set to: C:\j2sdk14217x64
    - I have the PATH system variable (System variable) set to: C:\j2sdk14217x64\bin
    When running the prerequisite checker I get the following error:
    "It is not recommended to use JDK version 1.4.2_10. Current version: JAVA_HOME not available."
    When I run %JAVA_HOME% from the command line the system finds it.  I'm not sure what the issue is here.

    Hello,
    Best to unistall JDK and reinstall latest one
    There is a download page solely for SAP customers:
    http://www.sun.com/software/javaforbusiness/sap_download.jsp
    See notes
    709140 Recommended JDK and VM Settings for the WebAS630/640/7.0
    Note 716604 for the Sun JDK (Windows, Linux, Solaris)
    regards,
    John Feely

  • SMF environment variables not working

    I have a Glassfish application in SMF with the following manifest file. I am trying to set the JAVA_HOME to /usr/jdk/latest.
    svccfg -s svc:/application/SUNWappserver/domain1 setenv -m stop JAVA_HOME /usr/jdk/latest
    svccfg -s svc:/application/SUNWappserver/domain1 setenv -m start JAVA_HOME /usr/jdk/latest
    svcadm refresh svc:/application/SUNWappserver/domain1:default
    # svcs -av |grep appser
    online - 12:22:51 249170 svc:/application/SUNWappserver/domain1:default
    # svccfg -s svc:/application/SUNWappserver/domain1 listprop | grep JAVA
    start/environment astring JAVA_HOME=/usr/jdk/latest
    stop/environment astring JAVA_HOME=/usr/jdk/latest
    I have a default instance and the stop/start methods are not defined inside it. After the refresh and restart, I still don't see Java using the /usr/jdk/latest JDK. Does anyone know why?
    Do those variables need to be defined inside the "default1" instance? If so, how do I do that with svccfg?
    <service_bundle type="manifest"
    name="SUNWasu appserver services">
    <service name="application/SUNWappserver/domain1"
    version="1"
    type="service">
    <single_instance/>
    <exec_method type="method"
    name="start"
    exec="/usr/local/glassfish/bin/asadmin start-domain --user admin --passwordfile /usr/local/glassfish/passfile --domaindir /usr/local/glassfish/domains domain1"
    timeout_seconds="0">
    <method_context working_directory=":default">
    <method_credential user="root"
    group=":default"/>
    <!-- privileges="basic,net_privaddr" -->
    </method_context>
    <stability value="Evolving"/>
    </exec_method>
    <exec_method type="method"
    name="stop"
    exec="/usr/local/glassfish/bin/asadmin stop-domain --domaindir /usr/local/glassfish/domains domain1"
    timeout_seconds="0">
    <method_context working_directory=":default">
    <method_credential user="root"
    group=":default"/>
    </method_context>
    <stability value="Evolving"/>
    </exec_method>
    <instance name="default" enabled="false">
    <dependency
    name='network'
    grouping='require_all'
    restart_on='none'
    type='service'>
    <service_fmri value='svc:/milestone/network:default' />
    </dependency>
    <!-- for ZFS, we need this to state this dependency -->
    <dependency
    name='filesystem-local'
    grouping='require_all'
    restart_on='none'
    type='service'>
    <service_fmri value='svc:/system/filesystem/local:default' />
    </dependency>
    </instance>
    <stability value="Evolving"/>
    <template>
    <common_name>
    <loctext xml:lang="C"> Appserver Domain Administration Server </loctext>
    </common_name>
    <documentation>
    <manpage title="Appserver" section="1" manpath="/opt/SUNWappserver/appserver/man"/>
    </documentation>
    </template>
    </service>
    </service_bundle>

    You're right....... it worked.
    The Content Server is case sensitive and the documentation is wrong......
    Thanks!

  • Environment variables not set by the install process

    Hello,
    Installed 11.5.10 on Redhat LIniux AS3.0
    None of the env variables (like APPL_TOP, OA_HTML, AR_TOP etc.,) are set by the install process do I need to run a separate script to set these varibales?
    Thanks

    Hi guys,
    I'm having exactly the same issues and more, when i try execute the *.env files i get a permission denied. Below is the output when running APPSORA.env
    [oracle@linux prodappl]$ ./APPSORA.env
    -bash: ./APPSORA.env: Permission denied
    below i list the permission etc on the *.env files in the APPL_TOP
    [oracle@linux prodappl]$ ls -l *.env
    -rw-r--r-- 1 oracle oracle 989 Oct 8 08:22 APPSORA.env
    -rw-r--r-- 1 oracle oracle 989 Oct 8 08:22 APPSPROD_linux.env
    -rw-r--r-- 1 oracle oracle 9396 Oct 8 08:22 PROD.env
    -rw-r--r-- 1 oracle oracle 9396 Oct 8 08:22 PROD_linux.env
    I've tried to change the permissions on the files and running, even though they don't return a permission denied message i'm get the same problem as KAR. The environments are just not getting setting, if i tried cd $APPL_TOP i just get dumped into /oracle/home

  • Setting Environment Variable not pulling in certain portion of script

    We have multiple domain controllers and when a user gets locked out constantly it is a bit of a process to login to that domain controller, pull the event logs, and search through that way. I looked at a few ways to automate this process in powershell and
    tweaked it a bit to work the way we need it to. I am trying to make this a simplified process for people who will use this script, currently I have:
    $DC = Read-Host "Domain Controller"
    $Account = Read-Host "Username"
    Get-WinEvent -ComputerName $DC -FilterHashtable @{Logname='Security';Data='$Account'} -MaxEvents 4 | Format-List -Property ID, TimeCreated, MachineName, Message
    This seems to work perfectly for what we need except when entering the information in response to Read-Host for $Account. The $DC pulls correctly but the $Account doesn't (I found this out by entering the user's username in the data field instead of $Account
    and the script worked correctly). Any Ideas on how to get this to work?

    Most answers are easy.  It is the questions that are hard.  If you had asked the right question you would have seen the answer immediately.
    Ask, "What is the difference between single and double quotes?"  When and why do variables need quotes?  Why and when do strings need quotes? 
    These are all PowerShell 101.  You must learn and understand to use PowerShell effectively
    \_(ツ)_/

  • LMDefaultLayout and LMDefaultSkin environment variables not working?

    Like the title says, I haven't been able to have these two variables working, neither with my custom Layout and Skin or with the "Classic" or "Top Menus" layouts and "Oracle" skin like the documentation shows as an example.
    The objective is to have my custom Layout and my custom Skin set as defaults when a new user is created.
    Has anyone made these variables or an optional solution work for this purpose?
    Thanks in advance,
    - Tiago Dias

    You're right....... it worked.
    The Content Server is case sensitive and the documentation is wrong......
    Thanks!

Maybe you are looking for

  • Query to return separate rows for date range including NULLs

    I'm trying to write a query that will return all customers from table 1. Table 1 also provides a start date and an end date that may be different for different customers. Left join with Table 2  provides all matches and NULL if NO matches. If there i

  • Epson Barcode printing Sapscript

    I've installed a new Epson LQ680Pro matrix-printer according to SAP notes. Device-type: EPESCP2 and Unix Regular Ascii driver. Printing of regular text is no problem. Printing of Barcode (std SAP Code39) doesn't work. All kind of other barcodes are n

  • WRT54G v. 6 continues to drop connection

    I have a WRT54G v 6 router and have installed the latest firmware(Oct 2009), however my connection continues to drop even though I have full "green bars" sitting next to my router. My DSL is with ATT and the connection to the modem is working fine. I

  • Batch Determination during MIGO Movement 543 O

    Dear All SAP Gurus, I want to know about batch determination during MIGO transaction for subcontracting cycle , movemnt type 543 O -consumption for parts provided to vendor. In Brief: Suppose clients executing subcontracting cycle and send the RM/PM

  • Check for grants

    I need to check if the grants are already given for a particular procedure/table/package. If the grants are not given then I have to give the grants, but if the grants exists then I just want a display saying that grants are already present. Am tryin