Shell environment variables and apple apps

Hi Does anyone know how to pass environmental variables to apple applications. For example I have an an app that will automatically execute a shell script on receipt of certain downloads but that script calls another script that has some embedded functions. The scripts all work from command line since I have all my paths and EVs defined in my .tchsrc but the app isn't run from the same shell.
Any clues as to a work around.
thanks
Anna

See
http://developer.apple.com/qa/qa2001/qa1067.html
or
http://www.rubicode.com/Software/RCEnvironment/

Similar Messages

  • Environment variables of 9i  App server

    I have to configure few Environment variables in 9i App server. How can i do that. Also I want to view all the exisitng Env varibles.
    Thanks
    N

    Nitin,
    What kind of environment variables? Could you provide some more details. All Application Server settings are done via the EM Website.
    Also, if this is a J2EE question, please post it on the J2EE forum.
    Thanks,
    Ashesh Parekh
    Oracle9iAS Product Management

  • HT3964 power outage seems to have upset macbook pro....says security certificates aren't valid for sites like facebook, google, and apple app site...cannot connect to app store to update

    Ice storm -power outage...Macbook Pro wouldn't charge....finally got it to work by holding down the power button but now it says the security certificates aren't valid on sites like facebook, google, and apple app store...cannot update software...any suggestions?

    Hi k,
    I don't know if it's the same in your OS, but in 10.6.8:
    Go to Applications > Utilities > Keychain Access > Keychain Access menu > Keychain First Aid > enter your password > click on Verify > click on Start. If you get a message saying something needs to be repaired, click on Repair > Start and wait for it to finish.

  • Unix shell: Environment variable works for file system but not for ASM path

    We would like to switch from file system to ASM for data files of Oracle tablespaces. For the path of the data files, we have so far used environment variables, e.g.,
    CREATE TABLESPACE BMA DATAFILE '${ORACLE_DB_DATA}/bma.dbf' SIZE 2M AUTOEXTEND ON;
    This works just fine (from shell scripts, PL/SQL packages, etc.) if ORACLE_DB_DATA denotes a file system path, such as "/home/oracle", but doesn’t work if the environment variable denotes an ASM path like "\+DATA/rac/datafile". I assume that it has something to do with "+" being a special character in the shell. However, escaping "\+" didn’t work. I tried with both bash and ksh.
    Oracle managed files (e.g., set DB_CREATE_FILE_DEST to +DATA/rac/datafile) would be an option. However, this would require changing quite a few scripts and programs. Therefore, I am looking for a solution with the environment variable. Any suggestions?
    The example below is on a RAC Attack system (http://en.wikibooks.org/wiki/RAC_Attack_-OracleCluster_Database_at_Home). I get the same issues on Solaris/AIX/HP-UX on 11.2.0.3 also.
    Thanks,
    Martin
    ==== WORKS JUST FINE WITH ORACLE_DB_DATA DENOTING FILE SYSTEM PATH ====
    collabn1:/home/oracle[RAC1]$ export ORACLE_DB_DATA=/home/oracle
    collabn1:/home/oracle[RAC1]$ sqlplus "/ as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Aug 24 20:57:09 2012
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    SQL> CREATE TABLESPACE BMA DATAFILE '${ORACLE_DB_DATA}/bma.dbf' SIZE 2M AUTOEXTEND ON;
    Tablespace created.
    SQL> !ls -l ${ORACLE_DB_DATA}/bma.dbf
    -rw-r----- 1 oracle asmadmin 2105344 Aug 24 20:57 /home/oracle/bma.dbf
    SQL> drop tablespace bma including contents and datafiles;
    ==== DOESN’T WORK WITH ORACLE_DB_DATA DENOTING ASM PATH ====
    collabn1:/home/oracle[RAC1]$ export ORACLE_DB_DATA="+DATA/rac/datafile"
    collabn1:/home/oracle[RAC1]$ sqlplus "/ as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Aug 24 21:08:47 2012
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    SQL> CREATE TABLESPACE BMA DATAFILE '${ORACLE_DB_DATA}/bma.dbf' SIZE 2M AUTOEXTEND ON;
    CREATE TABLESPACE BMA DATAFILE '${ORACLE_DB_DATA}/bma.dbf' SIZE 2M AUTOEXTEND ON
    ERROR at line 1:
    ORA-01119: error in creating database file '${ORACLE_DB_DATA}/bma.dbf'
    ORA-27040: file create error, unable to create file
    Linux Error: 2: No such file or directory
    SQL> -- works if I substitute manually
    SQL> CREATE TABLESPACE BMA DATAFILE '+DATA/rac/datafile/bma.dbf' SIZE 2M AUTOEXTEND ON;
    Tablespace created.
    SQL> drop tablespace bma including contents and datafiles;

    My revised understanding is that it is not a shell issue with replacing +, but an Oracle problem. It appears that Oracle first checks whether the path starts with a "+" or not. If it does not (file system), it performs the normal environment variable resolution. If it does start with a "+" (ASM case), Oracle does not perform environment variable resolution. Escaping, such as "\+" instead of "+" doesn't work either.
    To be more specific regarding my use case: I need the substitution to work from SQL*Plus scripts started with @script, PL/SQL packages with execute immediate, and optionally entered interactively in SQL*Plus.
    Thanks,
    Martin

  • Environment variable and spring

    Hi all, we are getting this when trying to run our app in Oracle 904:
    org.springframework.beans.factory.access.BootstrapException: Define an environment variable [java:comp/env/ejb/BeanFactoryPath] containing the class path locations of XML bean definition files; nested exception is javax.naming.NameNotFoundException: No object bound for java:comp/env/ejb/BeanFactoryPath
    javax.naming.NameNotFoundException: No object bound for java:comp/env/ejb/BeanFactoryPath
         at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:116)
         at javax.naming.InitialContext.lookup(InitialContext.java:345)
         at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:123)
         at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:85)
         at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:121)
         at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:71)
         at org.springframework.context.access.ContextJndiBeanFactoryLocator.useBeanFactory(ContextJndiBeanFactoryLocator.java:64)
         at org.springframework.ejb.support.AbstractEnterpriseBean.loadBeanFactory(AbstractEnterpriseBean.java:117)
         at org.springframework.ejb.support.AbstractStatelessSessionBean.ejbCreate(AbstractStatelessSessionBean.java:63)
         at MethodInvokerHome_StatelessSessionHomeWrapper1.callCreate(MethodInvokerHome_StatelessSessionHomeWrapper1.java:115)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.ejb.StatelessSessionEJBHome.getContextInstance(StatelessSessionEJBHome.java:275)
         at MethodInvokerRemote_StatelessSessionBeanWrapper0.invoke(MethodInvokerRemote_StatelessSessionBeanWrapper0.java:77)
         at java.lang.reflect.Method.invoke(Native Method)
         at org.springframework.remoting.rmi.RmiClientInterceptorUtils.doInvoke(RmiClientInterceptorUtils.java:103)
         at org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.doInvoke(SimpleRemoteSlsbInvokerInterceptor
    Basically the app server thinks there is no environment entry but I have it declared in ejb-jar.xml descriptor:
    <env-entry>
    <env-entry-name>ejb/BeanFactoryPath</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>applicationContext.prod.xml</env-entry-value>
    </env-entry>
    Any ideas,
    J

    u need display in order to have a graphical env with font, raster and all this information is taken from the ip address to which u have set the DISPLAY
    Also make sure xwindows is running. U can check whether DISPLAY has been configured properly by running xclock
    Best Regards
    Rajesh Alex

  • Simple question about environment variables and setting the class path???

    ok I have been trying for a few months now ontrying to set the class path..
    I work with windows vista..
    on the environment variables user variables,
    I have the name of the variable as class
    and the value as C:\Program Files\Java\jdk1.6.0_04\bin;.
    where javac is...
    on the system variables I have
    its name as class
    and the value as C:\Program Files\Java\jdk1.6.0_04\bin;.
    why is this not reading javac

    The PATH environment variable should have as an entry the directory containing your javac executable. The CLASSPATH should have have entries which define your library directories and entries which are your jar file libraries. In the early days, probably the only CLATHPATH entry you will need will be a '.' to indicate the current directory.
    The Java tutorial covers ALL of this.

  • [SOLVED] bash - diff btwn 'normal' environment variables and VAR=x cmd

    I always assumed variables passed like this:
    VAR=value cmd
    are passed to the program in the same way as environment variables. However; this is not the case; who can explain this?
    $ svn commit
    svn: E205007: Commit failed (details follow):
    svn: E205007: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the --message (-m) or --file (-F) options
    svn: E205007: None of the environment variables SVN_EDITOR, VISUAL or EDITOR are set, and no 'editor-cmd' run-time configuration option was found
    $ VISUAL=$VISUAL svn commit
    Sending file
    Deleting file
    Adding file
    Transmitting file data ..
    Last edited by Spider.007 (2014-04-24 17:55:49)

    I'm curious too.  I could at least *speculate* on how it could go wrong the other way around: if the envoked process spawns a new process that inherits a more general environment than the parent's, the first could work and the second could fail - but these results indeed should not happen.
    Test code as evidence that the variables are passed in the same way:
    #include <stdio.h>
    int main(int argc, char **argv, char **env) {
    char **envp;
    for (envp = env; envp && *envp; envp++) printf("%s\n", *envp);
    return 0;
    Basically this is a very basic `env'.  It shows all environment variables known to the process.  No matter how they are set, they are all placed in env.
    NOTE: most programs will use getenv() rather than the extra parameter to main(), but this is meant to test what is passed where.
    Last edited by Trilby (2014-04-24 13:07:21)

  • Accessing shell environment variables inside OMBPlus script

    Hi,
    I have a problem accessing an environment variable inside OMBPlus script. I can 'see' the env. var values when using tclsh, but when I use OMBPlus.sh it doesn't work?
    Anybody has an example of how to do this?
    For example: puts $::env(MYVAR)
    Thanks,
    Ed

    Hello!
    Issue the command:
    puts [array names env];
    this will print you the content of the env array which is definitely not the environment variables.
    If you want your environment variable appear in the env tcl variable then you must edit the ombplus.bat file and pass it through a java option like this:
    -DMYENV="%MYENV%" (on windows assuming you declared MYENV).
    Now puts $env(MYENV) will work.
    Regards,
    Robert

  • How to set environment variables in JavaCAPS6 app server?

    In JavaCAPS6 you can have variables in wsdls of the form {$var}.
    How are the values of these set in the app server configuration?
    Rupert

    Hi,
    You can set the environmet variable in Weblogic by using the below commands
    setWLSEnv.cmd/sh ==>Set the CLASSPATH to include the WebLogic Server classes.
    Overview of WebLogic Server Domains
    or you can use to set the Environment variable along with domain specific varables using the SetDomainEnv.cmd
    To run SetDomainEnv.sh in Linux please use
    . ./setDomainEnv.sh it require two dots (Dont miss it )
    http://docs.oracle.com/cd/E28280_01/web.1111/e13749/weblogicserver.htm#ADMRF205
    Hope it helps

  • Environment variable comes off App Server, oh well.

    I just tried an environment variable from a different machine and it reads it off of the Application Server machine, so I won't be using that method. Maybe I can't avoid WebUtil after all. Do you know if the jacobBin_17.zip file is required for what I want to do? Or can I leave it out as I won't need OLE? They should change that name, jacobBin is too much like jacobian and brings back bad memories from calculus.

    They should change that name, jacobBin is too much like jacobian and brings back bad memories from calculus. Well, Jacobin makes me think of eigtheenth century French politics. I really ought to renew my membership of the Must Get Out More Club.
    Cheers, APC

  • What are environment variables and how are they employed?

    i know that they are specified in the EJB's deployment descriptor but Im a little confused...
    Is it is asant (compiler) an environment variable?

    i know that they are specified in the EJB's
    deployment descriptor but Im a little confused...
    http://www.ejbtut.com/EnvVars.jsp
    Is it is asant (compiler) an environment variable?I guess not.
    http://docs.sun.com/source/817-6092/hman1m/asant.1m.html

  • I bought my software pack iWork 2008 at the apple retail store and I cannot get any updates and apple App Store won't help me.   Does any one know how I can get the upgrade without paying full price for a second time? I paid $99 for the iWork family pcan'

    I cannot believe that apple is refusing to help a customer who bought and paid for iWork software just because I bought it from the retail store the App Store says they cannot allow me to upgrade.  I have never heard of such.  It should to matter where I got it i bought apples software and I don't et how the retail store can be different frothe App Store my god its all still apple.  So stupid.  I will not pay full price for the upgrade.   Also I purchased Logic Studio and 2 days later the upgrade came out and they will not let u upgrade ?  I think there should be at Least a 30-45 day window if u purchase software and they release the upgrade u should get not.    It's not like apple doesn't make enough money already.  

    iWork '08 & 09 installed from the retail disk or from the downloaded trial must be updated through Software Update. Those installations will not be recognized as installed by the Mac App Store. In Mountain Lion Software Update has been "rolled into" the Mac App Store. Choose Software Update from the Apple menu just like you always have & the Mac App Store will launch. Depending on what you have that needs updating you may see two sections in the MAS window.
    But, as always, if you're not running the latest versions of the iWork apps installed from a retail box or the downloaded trial & Software Update says your software is up to date, make sure the applications are where the installer initially put them. The updaters are very picky. If the location is not where the updater is programmed to look or if the folder doesn't have the name the updater looks for, it will not work. The applications cannot be renamed or moved. If you installed from the downloaded trial or the retail box, they must be in the iWork '08 folder in Applications. That iWork folder must be named iWork '08. If it doesn't have the '08 Software Update won't find them & the updaters won't work.
    If you are running Pages 3.0.3, then you do have the latest version of Pages from iWork '08. If you want to upgrade to iWork '09, you will need to purchase the new version, just like everyone else. The good news is that you can buy just the individual iWork apps - Keynote, Pages & Numbers - that you need or want for $20 US each from the Mac App Store & then install them on as many Macs as you need using the same Apple ID.

  • HT204053 how can i use iTune and Apple apps to doenload applications without using credit card or gift cards?

    Hi Team,
    I have brought new iPhone, and was trying to install Skype & other applications. while using itune its asking for review, and then in registration page asking for
    "Credit card' details..
    help me to know the way without credit cards or gift cards.

    If you only want the free apps, take a look here:
    http://support.apple.com/kb/HT2534
    Read the steps carefully as the order in which you follow them is  critical. Note that you can do this only when creating a new Apple ID. You cannot use an existing ID. 
    You will of course not be able to get anything other than the free apps without entering in some sort of payment method (credit card, prepaid iTunes card, gift certificate, etc.)
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

  • Open Android Market and Apple App Store from AIR Mobile App

    I have two versions of my app, one is free and one is paid. I want to show links to paid version in the free version of the application. I want to open the link to the paid app directly in the  market or app store. How can I do that?

    Here is what I had used on a lite version of one of my apps, when you click that it opens the native app store app and links right to the app you want to sell to the users.
    function fl_getFullVersion(event:MouseEvent):void
        navigateToURL(new URLRequest("http://itunes.apple.com/us/app/pop-goes-the-bubble/id452505669?mt=8"), "_blank");
    So swap your app name and id and thats your link for itunes.

  • Xgrid and Apple apps

    Just wondering what Programs work with QMaster and the Xgrid setup.
    FinalCutPro?
    Motion?
      Mac OS X (10.4.4)  

    After searching online this fixed my issue
    vin_OZOct 30, 2014 2:02 AM Re: After installing Yosemite, safari doesn't work any more.
    Re: After installing Yosemite, safari doesn't work any more.in response to Koenfromdudzele
    I have found a temporary solution that works until reboot.
    Open a Terminal window and type:
    sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist
    -type password-
    then:
    sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist
    Dont know how to link him. But this worked fine. Guess it was missing this plist
    Cheers

Maybe you are looking for

  • I am strugling to activate icloud pls help

    i am having problems using icloud...i cannot log on icloud with my apple ID

  • Special period postings

    HI What are the Special periods, kindly suggest me how can   I post the Special period posting,  with regards Arun Kumar

  • Checking header on each page for memo field

    Hi, I have a report which has several details sections (4). In each detail section I have a title field and a content field. The content field is a memo fields and my problem is when the memo field goes on to another page it does not show the header.

  • Best Way To Tag Movies?

    I have some movies/videos in my iTunes library, but I don't understand how I should be tagging them. Should I be filling in the Artist, Album Artist and Album fields? Movies don't have "Albums" or "Artists", so it doesn't make much sense. For those o

  • Can in af:query we have vo attribute rendered as radio button?

    Hi , we have a requirement wherein we have a search region which has 2 radio buttons to choose date range and week range respectively.is there any way to achieve this in <af:query>???? Any pointers how to achieve this?? Thanks Anand