How set variable in Terminal (once)

In a Termina lsession, I want to create a new variable, MLROOT, and assign it the value of a path:
/Applications/Mathematica.app/SystemFiles/Links/MathLink/DeveloperKit/CompilerAd ditions
I've tried the following,and just get a "not a valid identifier" error. How to do this?
MLROOT=/Applications/Mathematica.app/SystemFiles/Links/MathLink/DeveloperKit/Com pilerAdditions
export MLROOT=/Applications/Mathematica.app/SystemFiles/Links/MathLink/DeveloperKit/Co mpilerAdditions
The indicated path does exist and is correct (in fact, I entered the path in Terminal by the usual OS X drag-and-drop method.
Note that I do not want to save this setting in any profile file for future use; this is a "one-off" use.

"export PARAMETER=value" is valid syntax. Please post the command as entered and the output.

Similar Messages

  • How to call a set variable?

    Greetings,
    I am creating an apple script that runs a netstat command to grab an IP address. This works.
    The "Set Value of Variable" (called XX) shows the IP address that netstat runs.
    The next apple script activates "Terminal" just fine.
    Within Terminal, I want to tell it to "telnet" to the IP address from the Set Variable and this is where I am stuck. How do I tell it what "XX" is?
    Thanks,

    If it is the only input item in the input (previous actions can contribute to the input), your statement would be something like:
    set DG to item 1 of the input
    If you are only using the variable in your second AppleScript action, you can also just combine them:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFEE80;
    overflow: auto;"
    title="this text can be pasted into an Automator 'Run AppleScript' action">
    on run {input, parameters}
    set DG to (do shell script "netstat -nr | grep -w 'default' | awk '{print $2}'")
    tell application "Terminal"
    activate
    do script "telnet " & DG
    end tell
    return input -- pass on the input
    end run
    </pre>

  • How to set variables values via VBA.

    Anybody please help.
    How to set variables values via VBA in workbook. SAP Netweaver 2004s.

    Pass variable values with VBA and BI 7.0 funtions to Query
    At first a remark u2013 Iu2019ve read a lot of threads saying that passing values to a query can be done by using VBA code only. Iu2019ve tested it but Iu2019m not sufficient with the new BEX 7.0 API and therefore I use a mixture of BEX 7.0 funtionality and VBA. I create a BEX 7.0 design item button passing the values to a query u2013 I hide this button somewhere on the sheet or on a hidden sheet and I then raise the event to click the button from VBA code. Works fine and the maintenance is easier if something changes in the API in the future again.
    How to start:
    Switch to design mode in BEX Analyzer:
    Implement a BEX 7.0 design item u201Cbuttonu201D
    Click on the button to implement the properties
    Make the input for the commands
    data_provider = dataprovider_1
    cmd = process_variables
    subcmd = var_submit
    No comes the part with the variables u2013 Letu2019s assume a query has 4 variables but you only want to change 1 with the button u2013 an organizational unit for instance.
    Make a range somewhere in the excel with the following structure:
    Name    Index   Value
    VAR_NAME_1      1       Variablename
    VAR_VALUE_EXT_1 1       variablevalue
    Value should contain the name of your variable of course and u201Cvalueu201D the value of your variable
    Set a name for this range with EXCEL functionality but without the header:
    Back to the properties of the button: Insert the name of the range with the variables in the field Command Range:
    If you have more variables to process you can of course enhance your Filterrange!
    In the left upper Corner you have a name for your button:
    Now you can raise the button-click in vba like this:
    Application.Run "'" & ThisWorkbook.Name & "'!Sheet2.BUTTON_35_Click"
    regards, Lars

  • How set a SESSION variable?

    How set a SESSION variable?
    There is a standard object where could do this?
    Thx in advance Roberto.

    >I'm not at all sure that you CAN change the portal language in the way that you want.
    >Perhaps you should repost this question in the portal forum.
    No i manage the language of WebDynpro myself, with tables from R3.
    I wanna do only a thing like HTTP SESSION variable from the WEB.
    I could do it, using java function of servlet, but i don't wanna use third packege out of WebDynpro FRAMEWORK.
    The isn't an OBJECT CLASS STANDARD od WebDynpro that do that?
    I wanna PERMANENT variable from a WebDynpro to another.
    It is an implicit variable passage.
    No one did something of similar?
    Bye
    Message was edited by: giovanni angerame

  • How to set variable to run java and j2ee

    how to set variable to run java and j2ee

    Please ask a specific and comprehensible question. Consider describing with less vagueness the actual current problem that you are encountering.

  • Using Spry Data Set Variable in Recordset

    I have a page that contains a spry data set and a recordset. The recordset uses one of the variables from the spry data set to filter its results. how do I apply the spry data set variable to the recordset?

    I believe passing this the variable through the URL requires you to update the page, right?
    Yes
    Is there anyway to grab the spry data set variable direct and apply it to your recordset filter?
    The SpryDataSet variable can only be used on the clientside (JavaScript) so you will have to get your recordset using JS.
    A page refresh can be set in motion if you add {useCache: false, loadInterval: 500} to your dataset to then set an observer to your dataset to invoke the page refreash function.
    Gramps

  • How a variable in C++ gets updated from calling a labview dll running in a loop?

    Hi,
    I have created a dll which is called from a C++ program. The dll has been created from a vi which continuously runs in a loop (this is necessary because I need to control some hardware in real-time). When I call the function from C++ I can see the front panel of the vi working properly, i.e. all variables are updated in real time on the labview panel (which I will set as not visible once i get this problem sorted out).
    However, I can't get the variables' values getting updated in my C++ program and I need these values to change in which way the hardware should behave ... is there any example somewhere in which something similar has been done? I have seen some examples where a dll is called from C++ with a vi function but not running in a loop. In these examples, the vi function passes the datum to the C++ software once is finished ...  
    thanks very much for your help,
    kind regards
    Sergio

    Hi smercurio_fc!
    Thanks very much for your answer!
    I have already an inter-process communication, where there are two threads running in parallel. In one thread the C++ code is running while in the other the LabVIEW code is running. The labview function is passing the "output" variables as pointers too.
    _1DScan(ReqForce,&StopAlign,0,&ReadForce,&Piezo_running,&RS232OK,&Running);
    the function is called using the following:
    void CFMControl::FMThreadProc()
        _1DScan(ReqForce,&StopAlign,0,&ReadForce,&Piezo_running,&RS232OK,&Running);
        return;
    When I run the C++ code I can see both threads working by seeing data being updated in C++ front panel (data that belongs to C++) and in labview fron panel (data that belongs to labview). However, when I try to use any of the outputs coming from labview I can't get them updated....

  • When I use FTPFire the .htaccess file uploads as hidden. How do I unhide it once it is uploaded?

    My .htaccess file shows live on my c drive... When I upload it to my web host, it loads as hidden...
    How can I unhide it once it is uploaded?

    That is the purpose of that file. On Linux a file that start with a dot is a hidden file and there is no need to see that file anyway because it is meant for controlling the server behavior. I assume that FireFTP has a setting to show hidden files that you need to enable if you do not see the file.

  • CFCs setting variables

    I am getting a bit confused with cfcs using cfreturn and
    cfinvoke please be patient!
    1.Setting variables in cfc
    In this example cfc I make a query. The cfreturn tag does
    <cfreturn expression /> as I understand it. I don´t
    understand how you define the expression - can you return
    arguments, any column I like in variables? How do I do that?
    <cfcomponent><cffunction><cfargument
    name="user">
    <cfquery name="checkuser">
    select col1, col2, col3, col4, col5, col6
    from user
    where .....=....
    </cfquery>
    <cfreturn checkuser.col1>
    2. Calling cfc:
    In cfinvoke you call a variable using returnvariable="". Is
    it true that the variable doesn´t have to have the same name
    as in the method that the cfinvoke tag is calling? What does return
    variable call? How do I define what it calls?

    In any cffunction, inside or outside a cfc, if you are going
    to return a value, you use the cfreturn tag. You can return
    constants like true, 1, "Dan is so smart", or variables. What you
    return has to be consistent with the returntype attribute of your
    cffunction tag.
    When you invoke a variable, you can use any name you want as
    the return variable. In theory, you don't even know any variable
    names inside the function. The return variable does not call
    anything. It accepts what the function returns.
    It is the cfinvoke tag that calls something. You control what
    it calls with it's attributes.
    Further details are in the cfml reference manual.

  • Calling functions / setting variables in loaded SWF

    You know how you can create a Movieclip object, add a
    function or variable to it, then call that function or change that
    variable from within the SWF that includes it? I wanna be able to
    do that, only with SWFs that are loaded at run time.
    My "main" SWF is simply a menu-type thing. The user clicks a
    button in my MAIN.SWF, and the MAIN.SWF then loads the SWF that's
    associated with that button, using the AS 3.0 prescribed
    Loader()-URLRequest()-addChild() method that everyone always asks
    about.
    This works great. But now I've got some custom objects and
    such (ie., not just strings) within my MAIN.SWF that I'd like to be
    able to share with the loaded SWFs. Preferably, I'd like to use an
    accessor-type function (ie.,
    LoadedSWF.GiveMeTheCoolObject(MyCoolObject);), though at this point
    I'm willing to hack into the object itself (ie.,
    LoadedSWF.CoolObject.CoolField = MyCoolObject.CoolField;) if that's
    what it takes.
    I've tried just calling the functions and setting the fields,
    but the AS 3.0 compiler doesn't care for that sort of nonsense on
    it's generically-defined objects. Notice also that, at run time, a
    call to LoadedSWF.hasOwnObject("GiveMeTheCoolObject") returns true.
    So my big-brained colleagues, what's the magic?
    In advance, thanks for the help!
    Scott

    Kglad,
    quote:
    Originally posted by:
    kglad
    from that error message it appears your function is expecting
    a member of the MyCoolObject class, correct?
    and MyCoolObject is not an instance of that class. so, you
    need to fix that. ie, create a member of that class and use that
    class member as the function parameter.
    Heh, that's what the error message says all right. But the
    object actually IS a MyCoolObject class object. I stared at this
    thing for hours, and MyCoolObject IS an instance of that class. I
    tried various casting combinations (including casting it to an
    Object and passing that) but had no luck whatsoever.
    So I googled this particular runtime error message ("Error
    #1034: Type Coercion failed: cannot convert ") and found a ton of
    links to other people having a similar issue. Typically, the
    problem was just as you said, someone passing a button as a string,
    that kinda thing. But one guy had a problem with an object he
    derived from the Event class. After hours spent trying to get it to
    work, he tried overriding the base class' clone() method and got it
    to work:
    http://www.asserttrue.com/articles/2006/10/14/custom-events-in-actionscript-3-0
    As for my project, I took a long hard look at the overall
    architecture of my project and decided that it was best if all the
    "real work" took place in the MAIN.SWF file. This approach would
    solve a couple of other problems, and it just makes sense in a
    "separate the display from the data" mentality.
    So (and this is the interesting part) I changed the API for
    the LOADED.SWF to accept String pairs (ie.,
    LoadedSWF.AddToDisplay(Name:String, Data:String) ) instead of
    accepting MyCoolObj. Ran it, and Viola, now we're working without
    any run time exceptions. After that glorious moment, I created a
    couple of other APIs that just accepted base classes (one an int
    type, the other a function type) and was happily on my way.
    From this, I gather that passing non-base class (ie, derived
    class) objects to loaded MovieClips via custom function APIs is...
    maybe not as straightforward as we'd expect. In the grand scheme of
    things though, not a big deal: As far as I'm concerned AS3 rocks.
    Again Kglad, thanks for all the help: Your input on how to do
    this was the big push that I needed to get over the last technical
    hurdle of this project.
    To those who are reading this topic for the "how do I call
    functions and/or set variables in a loaded SWF?"
    The short answer is to cast the loaded SWF's content object
    as a MovieClip and then call the function or alter the variable:
    //Load the SWF (you've seen this code a million times)
    var LoadedSWFObj:Loader = new Loader();
    var MyURL:URLRequest = new URLRequest("LoadThisSWF.SWF");
    LoadedSWFObj.load(MyURL);
    //This is within your Event.COMPLETE handler:
    //Cast it as a MovieClip object and work with that.
    var LoadedSWF:MovieClip = LoadedSWFObj.content as MovieClip;
    // or another way to cast it is:
    var LoadedSWF:MovieClip = MovieClip(LoadedSWFObj.content);
    //Call yer function:
    LoadedSWF.CallMe();

  • Performance of set variable command in WAD

    Hi all
        The set variable command in WAD is performing really badly. Can somebody please help me to identify how to decrease the response time.
    thanks in advance

    Hi Vikram,
    your link to SAP Help is wrong. It refers to BW 3.5 (NW04), but your URL looks like BW 7.0 (NBW04s). So you need another SAP Help link. Try this one:
    <a href="http://help.sap.com/saphelp_nw70/helpdata/en/43/ef05462480025ae10000000a1553f7/frameset.htm">http://help.sap.com/saphelp_nw70/helpdata/en/43/ef05462480025ae10000000a1553f7/frameset.htm</a>
    Regarding to example 3 your link should look like this:
    <a href="http://sthbmdm8dv.client.com.50000http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=ZPlan_W00500&BI_COMMAND_1-BI_COMMAND_TYPE=SET_VARIABLES_STATE&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=zplan_appid&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING=10002002">http://sthbmdm8dv.client.com.50000http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=ZPlan_W00500&BI_COMMAND_1-BI_COMMAND_TYPE=SET_VARIABLES_STATE&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=zplan_appid&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING=10002002</a>
    If the variable screen starts up, you should suppress it in template properties.
    best regards
    ARNE
    Edited by: Arne Witte on Jan 18, 2010 6:40 PM

  • Set variables leads to dump error in SEM 4.0

    Hi,
    I am on SEM 4.0 system.In BPS, i am not able to use set variables feature.whenever i hit this button the system does the process for couple of minutes and finally gives a dump error.
    I applied this note 806362.No success.
    Any one to my rescue?

    ravi,
    the variable is of type user-defined values and input allowed by user.
    "If the replacment type is user speficic values, then you can go to BPS0 - area - variable and set the values here also".- How i would do it here? Inorder to set the variable with a value i will choose SET VARIABLES option.
    Whenever i choose this the system creates a dump.
    Message was edited by:
            ragav

  • How do I delete terminal from my dock, it won't let me open a download. What is terminal and how did I get it on my dock?

    How do I delete terminal from my dock, it won't let me open a download. What is terminal and how did I get it on my dock?

    Just drag it off the Dock and it will go "poof"
    Look at the Options... when you click on it. Unless it got set to stay there, something you did or an app did caused it to be open.
    Are there any windows open attached to it?
    Is it set to "open on login"?
    I use it but I do not have it or keep it on my Dock. It is found in /Applications/Utilities and installers may need to use it.

  • "Set variable value" topic

    Hi evry!
    My vi sends some value of "cluster" type to RT-machine's vi by means of "Set variable (variant).vi", wich, in turn, answers with Error #2: Memory is Full!
    How can be that?
    Thanx in adv, guys!
    P.S.: All versions are 8.2.1.

    Hi Sharonoff,
    Thanks for contacting National Instruments.  I have been looking into your question a little more and I have some helpful links for you that I think will help you out.  This error is pretty self-explanatory in the fact that the system you are running the VI on is running out of memory.  The links attached below should give you some good guidelines on what to do with managing large data sets trying to avoid this error.  I would particularly pay attention to the article entitled "Managing Large Data Sets in LabVIEW."  However, you want to try and limit the size of the data in the cluster that you are sending to the RT-machine as it may not have a large amount of virtual memory that it can use to handle your data.  Please look over some of these documents and try out some of their methods.  If you have any more questions, reply back and we can go from there.  Thanks!
    http://zone.ni.com/devzone/cda/tut/p/id/3625
    http://digital.ni.com/public.nsf/allkb/CBEBDC18465​5FC8C8625724A00050854?OpenDocument
    http://digital.ni.com/public.nsf/websearch/C3C516C​11184AF3F862571B5006B46E1?OpenDocument
    http://digital.ni.com/public.nsf/websearch/BC911F0​893A4627586256BB10076E90C?OpenDocument
    http://zone.ni.com/devzone/cda/tut/p/id/3561
    Regards
    Noah R
    Applications Engineering
    National Instruments

  • Set variable samples per chanel from counter

    Hi, all. I have to set variable samples per chanel for sample clock. I want to take that samples from counter input with different number of edges for every second (different speed of metal plate). What can i do for that task? Is there a god example for this problem?
    Thanks.

    Hi, GerdW. Thanks for reply. I want Sample Rate and Samples per Chanel to come from couter. CI is a metal plate with 52 tooth. The speed of metal plate is 500 cycles/min but it is not constant ( may be 490-520). For example rate of cycles is 500/60=8.33 cycles/sec. Rate of edges (tooth) is 8.33*52=433 edges/sec, but when speed goes over or under 500 the rate is different. How to put that variable samples in sample clock on AI?
    P.S. Matlab script is to calculate max samples per chanel for mean function in while loop. In the picture control "Speed cycles/min" is that 500 cycles/min speed. I have to put in that control the variable rate of edges. Other solution is to set 1 sample per edge, but i have problem here to .  

Maybe you are looking for

  • I backed up my iPhone first then did a factory reset so I could get the iOS 8 update and now that I have it, my phone won't restore

    Idk what's happening and I really hope I did not lose EVERYTHING on my phone. After the backup and reset, I updated my phone to iOS 8 and during the updating process on iTunes it said backing up or something like that and then I instantly thought "no

  • How to run python files on the browser?

    Good day, I am trying to run any python file on the Leopard web server, accesing it via safari. also I have set the permissions of the file to 777... then I have copied the file to library/webserver/documents.When I open this file in Safari, the file

  • Before insert Trigger and SQL Loader

    Hi, I have a table with a BEFOR insert on each row trigger . I am loading the data to that table using sqlloader and I want my trigger to fire for each row. But the trigger is firing only for alternate rows. body of trigger as follows. select max(pd_

  • Calling queries made in WAD & Portal

    Hello Experts, I haven't seen how end user open WAD & Portal reports. I know how developers create WAD reports and give URL to portal guyz. I don't have any idea how these reports are called by endusers. Further please let me know WAD 1. Save 2. Impo

  • How to upload photo from portal

    Hi I want to upload photos through JSP and controller. I am using weblogic portal 10.2 Can anybody tell me. thanks Ankur