Strange Value in DISPLAY variable

Hello all,
in order to access remote Linux machines, I am running X11 on my iMac. For some reason this does not work anymore when connecting (ssh) from a "regular" bash (application Terminal) but it still works when I am accessing from the xterm-bash which was started with X11.
The error message indicates that the X-Server is not reachable.
Comparing the environment of the to bash', showed the culprit:
working: DISPLAY=/tmp/launch-Gu9ioY/:0
not working: DISPLAY=my_hostname:0.0
As far as I remember this was no issue with Tiger. Does anybody know what "/tmp/launch-Gu9ioY/:0" means? I have never seen this as a value for DISPLAY.
What does X11 sets here for DISPLAY?
Thx for your info on that!

X11 is completely rewritten in Leopard. The Leopard X11 sets DISPLAY for you and you should not override that. Edit anything left over from Tiger, such as .bash_profile, that is resetting DISPLAY. In other words, DISPLAY=/tmp/launch-Gu9ioY/:0 is correct; DISPLAY=my_hostname:0.0 is wrong.
Also note that Leopard's X11 will launch automatically when needed. You don't need to pre-launch it. For example, if you type "ssh -X" at the Terminal, X11 will launch.

Similar Messages

  • Displaying the value of an variable on the stage

    I have managed to display the values contained in string variables on stage, and I am happy with that, however when I wish to display the value of an int and convert it to a string as one is supposed to do the output to the stage just calls it [class int] and does not give its value. any suggestions?
    My rogram contains a stage at frame 1 which displays a word. The user must input a word. Frame 30 then displays the word which was displayed and the word input by the user. That all works fine. But the value of the variable NumberRight, which has been assigned to that variable will only display as [class int] without showing its value. (even though I have converet it to a string using the .to string function you see below).
    My code is as follows;
    trace( "The number correct was" + NumberRight); //This works fine in the output window and shows the value of the variable as NumberRight [class int]1 (showing the value to be 1)
    outputText.appendText("in/"+textAtIN); //this works fine displaying the word presented and word input by user as in/in
    outputText.appendText( NumberRight.toString(     )); //here lies the problem as it just displays [class int] and nothing else.
    Yes I have managed to overcome that problem it was some code on the first frame, please excuse, however, now, is there any way to remove the [class int] bit from the displays, I wish to have the results as a clear copy of the results so that they can be printed out, without [class int] all over the place?

    Hi Ned thanks for that. Yes I had accidently created blank spaces in the String() argument. (wanted to check if there was a subsequent difference in display and forgot to return them to normal ...Sorted )
    Your next suggestion has eliminated the [class int] but I get a value now of 0.
    My code on the first frame for a correct response for example is;
    function keyPressedIN(event:KeyboardEvent):void
              if (event.keyCode == 13)/*Normally,this will move straight on to the next frame-
              recording a correct response and all that that implies in terms of scores etc. But now I have re directed it to Frame 30 to check are the variables working properly*/
                        //insert code for correct responses vowels etc.
                        VowelI = VowelI+1;
                        NumberRight = NumberRight +1;
                        stage.focus = stage;
                        //There is no need to display the text box as this is a correct response.
                        pupilsResponseIN.visible = false;
                        mainText.visible = false;
                        gotoAndPlay(30);//at the moment this takes me to the display frame to check if all is ok
    On the first frame when the user say hits the Return key my code assigns the value of +1 to the variable; eg
    NumberRight=NumberRight+1;
    and the value of +1 to the value of VowelI
    VowelI=VowelI+1
    At Frame 30 the code is as follows;
    stop();
    trace( "The number correct was"+ NumberRight);
    outputText.appendText("in/"+textAtIN);
    outputText.appendText( "\n");
    outputText.appendText("Vowels Correct ="+(int(VowelI).toString()));
    outputText.appendText( "\n");
    outputText.appendText("TotalCorrect="+(int(NumberRight).toString()));
    //outputText.appendText( VowelI.toString());
    Now what I am getting  is
    in/in
    Vowels Correct = O
    Total Correct = O
    Yet the trace (output box) records the Number correct as [class int]1 
    many years ago I wrote this same program in Authorware using similar code. I am trying to re write it in FlashCS5 using ActionScript 3 and It take days to solve small problems. I notice also that If for example the user of the program makes an error and I record the error as NumberRight =NumberRight -1 the program records it as Total Correct = NaN .
    I gave up on this a few months back but I am trying again. I think there must be a better way to do this. Variables do not seem to add up or subtract for me at present. no doubt its me thats got it wrong.

  • Wants to display variable as key value in Free Char section of report

    Hi All,
    I have a variable based on characteristic. When I execute report, I pass value for that variable. And I get text of that variable value, displayed in Free Characteristic section.
    Instead of text, I want to display key value there.B'coz many times, texts are ambiguous and quite fictional examples.
    I have tried changing 'Display as key' in Business explorer tab of infoobject definition. And in query definition, I already have 'Display as Key'. So I am wondering what else needs to be done for this change.
    I will appreciate if someone can help me on this.
    Thanks,
    Pranali

    Hi Pranali,
        You can display all variables used in Query in workbook from BEx Menu(Tool bar) -->> Layout --> Display Text eliments --> Variables (you can see two entries for each variable) one for key and one for Text.
    Hope it Helps
    Srini

  • Display value of condition variable in the output

    Hi
    I have written a BEX query for sales analysis that has <b>condition</b> for sale value, the user enters 2 variables, the upper and lower limit of sales value.Customers whose sale lie in the value range is displayed.
    in the results now I wish to display the values of variables entered by users, how can I achieve that?.

    Hello ,
               You can go for textelements option to display the value of the variables.
    <P><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TEXTELEMENTS_2"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="CAPTION" value="SAP_BW_TEXT?PROGRAM=ZEW06_TRANSLATE_HTML_TEXT&amp;KEY=001"/>
             <param name="WIDTH" value="371"/>
             <param name="SHOW_COMMON_ELEMENTS" value=""/>
             <param name="SHOW_FILTERS" value=""/>
             <param name="ELEMENT_TYPE_1" value="VARIABLE"/>
             <param name="ELEMENT_NAME_1" value="test1"/>
             <param name="ELEMENT_TYPE_2" value="VARIABLE"/>
             <param name="ELEMENT_NAME_2" value="test2"/>
               ITEM:            TEXTELEMENTS_2
    </object></P></TD>
    hope it helps,
    assign points if useful

  • Display Variable Values in 7.0

    There was an option in BW 3.x to display variable values using technical settings -> display -> variable values.  I do not see this option in 7.0!?  Showing the variable values is a great way to figure out whether or not a customer exit variables are working as expected.  Could someone please help me with finding this option in the BEx analyzer?  Points will be assigned for useful posts?  Thanks for your time.

    Dear Sameer,
    As I understand from your question that you want to debug whether the customer exit variable logic is workinig fine or not. For that you can set a session breakpoint for the variable exit in CMOD. Now use the transaction rsrt to run the query. This will take you to the debug mode and here you can see the variable values and whether the logic is performing as expected or not.
    Regards,
    Prem.

  • Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

    Hi,
    I'm running WebLogic 5.1 sp10 on a Solaris box and I get the
    following error:
    java.rmi.RemoteException: java.lang.InternalError: Can't connect to
    X11 window server using ':0.0' as the value of the DISPLAY variable.
         at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
         at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:59)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:120)
         at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
         at java.awt.Font.initializeFont(Font.java:264)
         at java.awt.Font.(Font.java:298)
         at com.hrw.xls.EmailXLSThread.getCellWidth(EmailXLSThread.java:162)
    caused by the following code fragment:
    Font f = new Font(fontName, fontStyle, fontHeight);
    FontMetrics fm = (new Panel()).getFontMetrics(f);
    Have I just forgotten to set an environment variable? I would prefer
    not to install bulky pieces of software, but if that's what it takes
    to get over this error, so be it.
    Thanks, Dave A.

    A Java AWT, X11 problem posted in the weblogic ejb newsgroup. I haven't been in here for long, but
    that has to be a first.
    If you have the DISPLAY env variable set to :0.0, you have to be at the console on a Solaris box
    running the XServer. 'xdm' I think is the code that has to be running. Also, I think the format is
    <hostname:0.0> or better <hostname:0> unless you are on a multi-headed workstation. Something like:
    export DISPLAY=hostname:0
    where hostname is the name of the host running an XServer and the .xhosts file allows access to the
    XServer from the display client.
    Apparently, you are not at the console?
    Anyway, I don't think there is a newsgroup here that I could even recommend to cross-post this to as
    it is not a WebLogic question. I think I would try the Discussion Forums at http://java.sun.com.
    Bill
    "D. Alvarado" wrote:
    Hi,
    I'm running WebLogic 5.1 sp10 on a Solaris box and I get the
    following error:
    java.rmi.RemoteException: java.lang.InternalError: Can't connect to
    X11 window server using ':0.0' as the value of the DISPLAY variable.
    at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:59)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:120)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
    at java.awt.Font.initializeFont(Font.java:264)
    at java.awt.Font.(Font.java:298)
    at com.hrw.xls.EmailXLSThread.getCellWidth(EmailXLSThread.java:162)
    caused by the following code fragment:
    Font f = new Font(fontName, fontStyle, fontHeight);
    FontMetrics fm = (new Panel()).getFontMetrics(f);
    Have I just forgotten to set an environment variable? I would prefer
    not to install bulky pieces of software, but if that's what it takes
    to get over this error, so be it.
    Thanks, Dave A.

  • Rh Variable displays variable name, not value

    In master page, header, I have inserted the chapter name. When I generate the output, it displays the variable name, PD Chapter Name, not the value of the variable. The code is unaltered from the button selection 'Insert Chapter Name' . Is there another step I'm missing? Thank you!
    <p><?rh-variable_start name="pd-chap-name"
      value="&amp;lt;&amp;lt;PD Chapter Name&amp;gt;&amp;gt;" ?>&lt;&lt;PD Chapter Name&gt;&gt;<?rh-variable_end ?></p>

    Hi there
    Can you share screen captures of the variables pod as well as a topic or something depicting this in the final result?
    Thanks... Rick

  • Can we assign value to a variable in PL/SQL Loop

    Hi
    Can we assign value to a variable in PL/SQL Loops?
    DECLARE
    V_Num NUMBER;
    BEGIN
    LOOP
    V_Num := 10;
    DBMS_OUTPUT.put_line(V_num);
    V_Num := V_Num - 1;
    EXIT WHEN V_Num = 0;
    END LOOP;
    END;
    In the above program, Can we assign V_num with a value 10????????
    Thanks & Regards,
    Hari Babu
    Edited by: 1004977 on Jun 5, 2013 2:40 AM

    Hi,
    1004977 wrote:
    Hi
    Can we assign value to a variable in PL/SQL Loops?
    DECLARE
    V_Num NUMBER;
    BEGIN
    LOOP
    V_Num := 10;
    DBMS_OUTPUT.put_line(V_num);
    V_Num := V_Num - 1;
    EXIT WHEN V_Num = 0;
    END LOOP;
    END;
    In the above program, Can we assign V_num with a value 10????????Yes; the example you posted does that.
    When the loop starts, the value 10 is assigned to v_num. You should see that value displayed by the put_line statement.
    After that, v_num is set to 10 - 1 = 9.
    Next, the EXIT condition is evaluated. At this point, v_num is 9, not 0, so the loop runs again. V_num is set to 10 again, and the loop continues forever (or, in some versions, until the dbms_output buffer is filled and an error occurs.)

  • Default value in recordset variable

    Hi,
    I am using Dreamweaver 8.
    I am not sure that I understand the function of the default
    value in the variable area of the recordset. I'm using a search box
    and sending the result on through the url. If the person types
    something that is not in either of the two fields searched, is the
    default value supposed to kick in? I have tried entering a value of
    something that is actually in the field, but get a broken image
    (x)...I'm displaying images.
    What I would actually do is to display an error message on a
    different page. Is there a SQL statement that could be put after
    the search statement such &quot;if not....go to url or
    something&quot;? If not, I was thinking of creating a blank
    image with wording stating that there was no match.
    Current recordset code:
    SELECT*
    FROM images
    WHERE description LIKE %colname% OR picturenum = colname2
    ORDER BY picturenum ASC
    Name:colname
    Type:Text
    Default Value: montana (an actual word in the database)
    Run-Time Value: $_GET['description']
    Name:colname2
    Type:Text
    Default Value: A091 (an actual image in the database)
    Run-Time Value: $_GET['description']
    Current code works perfectly thanks to some direction by
    David Powers....thanks David.
    Any help would be appreciated.
    Thanks,
    Cliff

    The best way to accomplish this is to build the WHERE clause dynamically, or else have a different WHERE clause that you use in these situations. In other words, test the value of the querystring variables and if they are empty,  use a different WHERE clause that does not include the address  condition.
    Also, this question belongs in the app dev forum.

  • Change the value of a variable used in a View query

    I am using JDeveloper 11g to develop a simple portlet application which displays data loaded from database. I am displaying the data by dragging the ViewObject from the AppModuleDataControl to the View.jspx page and selecting the option ADF Read-only Table. My ViewObject has a single variable :empId. Now is it possible to change the value of this variable with a value that comes from the request object. On the internet I found the following code:
            FacesContext facesContext = FacesContext.getCurrentInstance();
            Application app = facesContext.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = facesContext.getELContext();
            ValueExpression valueExp =
            elFactory.createValueExpression(elContext, "#{data.AppModuleDataControl.dataProvider}",
            Object.class);
            ApplicationModule am = (ApplicationModule)valueExp.getValue(elContext);
            ViewObject emplVO;
            emplVO = am.findViewObject("EmployeeView1");
            emplVO.setNamedWhereClauseParam("empId", "1");I have put this code in the public void processAction(ActionRequest request, ActionResponse response) method. However this does not work when I deploy it.
    Does anyone know if the above code is correct in this case and if there is a better way how I can set this up?

    Hi there:
    Did you add a break point and debug the code to see what is the value for the :empid parameters passed in to your view object?
    If you are sure you have passed in the correct value for ":empid" parameter, then do the following:
    String amDef = "yourAmDef";
    String config = "yourConfig";
    ApplicationModule am =
    Configuration.createRootApplicationModule(amDef,config);
    ViewObject emplVO;
    emplVO = am.findViewObject("EmployeeView1");
    emplVO.setNamedWhereClauseParam("empId", "1");
    empVO.executeQuery();
    which will execute your view object with the new bind variable value and refresh the view.
    Please mark my answer as 'Correct' if it solves your problem, or 'Helpful' if it does.
    Thanks,
    Alex
    Edited by: Alexbie on 27-Aug-2010 8:52 AM

  • How to Print the Value of a variable inside a PL/SQL package

    Hi Friends,
    Here is my Scenario
    I have a PL/SQL Package. Let us call it Baseline Package.
    This Package includes a dynamically built merge Statement.
    Execute Immediate v_merge_query.
    I have a procedure which replaces which few Keywords from the Package Text and Creates a new one depending on Inputs I provide. (This is something like a Code generator)
    Now while Creating the new package, I need to print the Value of v_merge_query.... I Need s Static Query to be Printed inside the new package and not a dynamic query.
    My Question is "Is there a way to print the value of the variable inside a different PL/SQL package?
    Thanks in Advance,
    Mohit

    Print where?
    That PL/SQL code is server-side code. It runs in an Oracle server process.
    That server process does not have a keyboard. Or a screen/monitor. Or display canvas. Or an attached printer.
    That server process is incapable of "printing" as that is not its job or responsibility and not part of its environment.
    What is can do is record data for the client to look at afterwards. This can be done using static PL/SQL session variables. Or a SQL table.
    The former is done by DBMS_OUTPUT - a very primitive interface for writing text into a static PL/SQL string array. That btw resides in expensive private process server memory. The client can query the array after a database call and render the contents.
    PS. Also keep in mind that bind variables are critical for performance and server robustness - especially when (ab)using dynamic SQL.

  • Dynamically assign value to bind variable in a view object before pageload

    I found that it is extreamely hard to find an example to assign the bind variable in View object at runtime using a data attribute defined in Human task activity. Most of the available samples use a Literal value to do the assignment. In my case, I want to dynamically display the content by assigning the data attribute in Human task to the bind variable in view object before a pageload.
    I do not want to bind the view object to some command component to click a button or link in order to make it work (Unnecessary components in my page).
    The issue is how to access the data attribute in Human task in the java code of client interface in AppModule? or is there a way that I can access the data attribute in Groovy script expression of the bind variable? or if I can access the process data object defined in my BPM process to do the assignment at runtime?
    Really need help on the issue, and I cannot believe that it is so hard to accomplish.
    Thank you very much,

    chk this
    Passing default value to bind variable on page load.
    http://adfcodebits.blogspot.com/2010/03/bit-2-setting-bind-variable-value.html

  • Passing value to bind variable of another table from one table

    hi,
    I have a multi select table. When one row is selected from this table (no button is clicked, only selection is done), an attribute from that selected row (say userid) should be passed to the bind variable of another table and the corresponding details of that particular userid should be displayed in the other table. When more than one row is selected, the other table should display no rows.
    My main problem is what code has to be written to pass value to bind variable and where it should be written.
    Please give me a detailed explaination as soon as possible.
    Thank you.

    Sorry, didnot add this. The table is multi select table.

  • Evaluating the value of a variable in OpenScript

    I am attempting to navigate through screens and views based on a spreadsheet containing the applicable screens/views. I am using variables based on a dataset which I have been successful in substituting into the various method calls to change views, etc. What I am attempting to do is use the value of the variable in an "if" condition statement to drive the flow of the script. I have tried referring to it directly and have also tried setting it to a different variable and referencing it. Neither approach worked (I've commeted out some of the approaches). Instead of using the value, it appears to be using the literal string which prevents the usage of the variable (I know this from the result of the test since it calls gotoScreen instead of gotoView as well as the showMessageDialog which displayed the literal string of {{db.ViewList.ScreenName}}. I have also tried testing the reverse logic (if ("{{db.ViewList.ScreenName}}" != "Accounts Screen")) which also helps prove that it's not working. Here is the code snippet:
              for (int i = 0; i < 70; i++)
                   getDatabank("ViewList").getNextDatabankRecord();
    //               String sScreenName = "{{db.ViewList.ScreenName}}";
    //               getVariables().set("vScreenName", "{{db.ViewList.ScreenName}}");
    //               String sScreenName = getVariables().get(vScreenName);
    //          JOptionPane.showMessageDialog(null, "Screen Name is: " + sScreenName);
    //          JOptionPane.showMessageDialog(null, "Screen Name is: {{vScreenName}}");
    //               if (sScreenName.isEmpty() || sScreenName == null)
    //               if (sScreenName.length() == 0)
    //               if (sScreenName != "Accounts Screen")
                   if ("{{db.ViewList.ScreenName}}" == null || "{{db.ViewList.ScreenName}}" == "")
                        siebelFT
                             .pageTabs(
                                       114,
                                       "/siebelft:cas[@ClassName='SiebApplication' and @RepositoryName='Siebel Automotive']/siebelft:cas[@ClassName='SiebPageTabs' and @RepositoryName='SiebPageTabs']")
                             .gotoView("{{db.ViewList.ViewName}}");
                   } else
                        siebelFT
                             .pageTabs(
                                       82,
                                       "/siebelft:cas[@ClassName='SiebApplication' and @RepositoryName='Siebel Automotive']/siebelft:cas[@ClassName='SiebPageTabs' and @RepositoryName='SiebPageTabs']")
                             .gotoScreen("{{db.ViewList.ScreenName}}");
                   web.window(83, "/web:window[@index='0' or @title='Siebel Automotive']")
                             .waitForPage(null);
                        think(7.711);
              } // End For Loop
    -John

    In Java, consider using equals for comparing strings instead of == or !=. In Java the equality and inequality operators compare the String Object references and not actual values. Two variables with the same characters may not be equal if they point to different objects in memory. The equals method will compare the actual values of the variables.
    Example 1: Using the equal operator to compare two strings
    if ( !eval("{{db.ViewList.ScreenName}}").equals("Accounts Screen") )
    Example 2: Making the comparison case insensitive
    if ( !eval("{{db.ViewList.ScreenName}}").toLowerCase().equals("accounts screen") )
    Example 3: Case insensitive and trimming spaces and new line characters before making the comparison will make it less likely to fail in case there are spaces at the beginning or at the end of the string. Sometimes is difficult to see these spaces. I trim strings often specially when they come from an HTML or XML source because not everybody is consistent with the use of spaces.
    if ( !eval("{{db.ViewList.ScreenName}}").trim().toLowerCase().equals("accounts screen") )
    Note the ! sign as the first character inside the "if" is used to say that we want the opposite of the outcome of the equals method. This is used in this case because we want "not equal to".

  • Pass bind value to a variable

    How possible is it to pass a bind value to a variable?
    <cfselect id="addo" name="addo"
    bind="cfc:asproxy.getRList()"display="ListName" value="ListID"
    BindOnLoad="true" />
    The above bind value in addo then passed to the below, making
    available to the whole page as "valueaddo"
    <cfset valueaddo =#addo#>

    Thank you Bitaites.
    I tried to add a new action in the page definitions --> bindings --> insert inside binding create new action --> and then choose the data collection --> select an Action as "ExecuteWithParams" --> in the Value field I put the value e.g. 'APPROVER'.
    Is something I did wrong? Because it seems not work... =(
    Can you explain a little bit about how to do it?
    Thanks a lot!!

Maybe you are looking for