Running executables in an XTERM

Hi,
I have an application that requires a working terminal to run. The "Execution Window" of studio 11 does not have terminal support (ie. cursor is not addressable).
My app needs to run inside an xterm or vt100 terminal. How do I get my application to run within an xterm from Studio 11 IDE. And how would I debug an application that runs inside an xterm using the IDE?

I was previously asking a question how to run xterm without a shell in it.
I did not get any response but here is a simple trick how to run application from Studio 11 IDE and redirect I/O to xterm window.
The xterm (to my knowledge) has to be always associated with some running application.
The problem is that the application I/O is interfering with I/O of the program you are debugging.
THIS IS A HACK.
Write a simple c program (s.c):
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main() {
printf("pty:%s\n",ttyname(0));
close(0); close(1); close(2);
fclose(stdin); fclose(stdout); fclose(stderr);
for(;;) sleep(10);
compile:
cc s.c
and execute � do it login as the same user as you are running Studio11 to avoid permissions issues.
xterm a.out
Now you have running xterm with application which is ignoring I/O
The only text displayed in the xterm window is the name of pty
Go into IDE debugger and load the application you want to debug in xterm window
Set the I/O for the program to the pty from the xterm screen
Make sure your environment has set proper TERM.
Start debugging. All I/O will go through xterm window.
Once you are done just close the window (xterm) or CTRL_C from it.
Let me know if it helped
Message was edited by:
Well the Forte6U2 did not have this kind of problems. The Output window was working just fine as a xterm replacement. For the development environment like Studio11 there should be a nicer way how to do this.
coinserv

Similar Messages

  • How to turn off mouse (or touchpad) scrolling when running vim in an xterm?

    Just updated 13" macbook pro (mid-2010) from Snow Leopard (10.6.8) to Yosemite (10.10.1).  Previously, when running vim in an xterm, scrolling with the touchpad did nothing inside vim, it just scrolled the xterm history back so I could see what I had done before executing vim.  Now, the same scrolling action (either with touchpad or with an external mouse with scrollwheel) moves the cursor position inside vim (if I'm in navigate mode).  I want to turn this feature off.  I'm sure some people like it but I do not.  Anyone know whether this is something to be blocked by vim settings, or perhaps something in the xterm settings I need to change?  Vim version is 7.3 (2010 Aug 15), which must be a slightly later version than I had under the original operating system, since I got it July 2010. 
    I've tried modifying various vim settings, but to no effect.  I haven't found a comprehensive list of such settings to try systematically. 

    While I do not have Yosemite up and running at the moment, I cannot actually play with Yosemite Terminal.app.  But you should at least look through the various Terminal -> Preferences to see if there is any configuration option that is telling the Terminal how to treat scroll operations.  And try things like changing the "Declare terminal as: ............." setting, as that may affect the Terminfo database entry, which Vim uses to decide on what it does with various keyboard escape keys for input as well as displaying output (not sure if that would affect scrolling input, but it is worth a shot).
    Instead of using X11 and xterm, consider giving iTerm a try.  I have been using as my terminal emulator for years, and at work I live in terminal sessions, ssh'ed into various Linux, Solaris, AIX platforms.
    <http://iterm2.com>  A newer version
    <http://iterm.sourceforge.net> an older but still viable version (I used this on my Snow Leopard 10.6.8 system)
    iTerm will give you Tabbed windows just like Terminal (actually had Tabbed windows years before Terminal.app).  It will allow you to define what a double-click selection thinks is a word.  It has an option to automatically load anything selected into the copy/paste buffer.
    NOTE:  I have nothing against X11 and xterm.  I also use X11 (XQuartz) all day as well as terminal sessions, with various Linux, Solaris, AIX X11 displays being sent back to my iMac at work, frequently using gvimdiff.

  • How can I perform a silent install of an application AND use "run executable after installation"

    I am trying to do a silent install of a program I built using LabVIEW 8.5.  I also need to call an exe after the installation, so I am using the "run executable after installation" option on the Advanced tab of the installer.  I then pass the following command lines to the setup.exe:
    /qb /acceptlicenses yes /r
    This installs the LabVIEW program successfully, but does not then run the additional exe afterward.  If I run the setup.exe normally (with no command line parameters), the additional exe gets run.
    Thanks,
    Jason

    jmburns wrote:
    I am trying to do a silent install of a program I built using LabVIEW 8.5.  I also need to call an exe after the installation, so I am using the "run executable after installation" option on the Advanced tab of the installer.  I then pass the following command lines to the setup.exe:
    /qb /acceptlicenses yes /r
    This installs the LabVIEW program successfully, but does not then run the additional exe afterward.  If I run the setup.exe normally (with no command line parameters), the additional exe gets run.
    Thanks,
    Jason
    This problem is fixed in a future release of LabVIEW. Here's the CAR ID 67549 for tracking purposes.
    Message Edited by Bob P on 07-10-2008 09:10 AM

  • Which tablet/s can run executables created in LabVIEW 8.5?

    Background: I have created a VI that acquires data over bluetooth from a specific DAQ device. The VI is created in Windows 7 and LV 8.5. The VI is tested to work on the development machine. I'd like end users to be able to install and run an executable version of this VI from a tablet that has bluetooth capability.
    Question:  Which tablets can run executables created in LabVIEW 8.5? I think tablets running Windows 8.1, such as Surface Pro and Dell Venue Pro, should be okay but need a confirmation before I purchase one. Also, how about tablets that run other operating systems, such as Windows RT or Android?
    Extended Question: What tablets in the market can run LabVIEW 8.5 VIs (or in other words allow LabVIEW 8.5 to be installed)?
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

    Well since LabVIEW 8.5 isn't officially supported on Windows 7, or 8 you may have issues.
    http://digital.ni.com/public.nsf/allkb/B972242574D4BB99862575A7007520CB
    Of course many on the forums have stated being able to run older versions of LabVIEW on new operating systems without issue but know that from NI's perspective you should not be running LabVIEW 8.5 on Windows 7.  Which means no modern tablet.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • What software do I need to run executables files

    Hi
    I have application where I acquire data from sensors using stain gauge and thermocouple modules with 6225M DAQ card. Also I am writing some data that i get from a joy stick to a serial port in the same application. In order to run executable file of this application what software do I need?  I installed labview runtime engine in the target machine but it didn't run my program. Do I need to install any drivers for the DAQ card?  i am using labview 8.6.

    Of course you need to install the DAQmx driver. If you have LabVIEW 8.x, when you create the installer, you have the option to install different versions of the driver ranging from a full install to a minimal one. If you have tasks saved in MAX, you would want to install MAX and export your current config. Then select to have the installer import the config on the pc with the exe.

  • How to run executable after installation?

    Hi everyone,
    I created an installer from one labview program with the application builder
    of Labview7.1 for my customer, and this installer will be burned
    on a CD. There are several configuration files which should be always
    modified, so I want to give the customer a possibility that he can
    change them by himself without creation of a new installer , I think the
    "run executable after installation" is the way to do it, but I don't know
    how to implement such an executable command to copy some files from CD to
    the destination directory which the program should be installed, could
    anyone give me some tips? Thans a lot!
    Le

    When you setup your build file, add the files using SourceFile Tab>>add support files, then click on custom destination, here you can add support files during installation. Hope this is what you are looking for.
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Bought from a friend,  have apple account how do I run executable files  when I cannot  find the administrator sign in . I mean where in system file do i open administrator log in?

    Am wanting to run executable files  where in system is the administrator sign in?

    If you are talking about .exe files, macs can't run those. Look for a .dmg version.

  • How to run execute immdiate with variables

    Hi friends,
    How to run execute immdiate with variables in v_stmt below?
    I dont know how to declare the value of i here.
    Set serveroutput on;
    DECLARE
       i        VARCHAR (20);
       v_stmt   VARCHAR2 (100);
       CURSOR c
       IS
          SELECT sqlid FROM temp1;
    BEGIN
       OPEN c;
       LOOP
          FETCH c INTO i;
          EXIT WHEN c%NOTFOUND;
          DBMS_OUTPUT.put_line (i);
          v_stmt := 'select * from table(dbms_xplan.display_cursor('&i',null))'
          execute immediate v_stmt;
       END LOOP;
       CLOSE c;
    END;
    /Regds,
    Kunwar.

    You first need to use a bind variable (named ':v' in SQL statement in my example):
    set serveroutput on;
    DECLARE
       i        VARCHAR (20);
       v_stmt   VARCHAR2 (100);
       CURSOR c
       IS
           -- modified for a quick test
          SELECT sql_id FROM v$sql where child_number > 2;
    BEGIN
       OPEN c;
       LOOP
          FETCH c INTO i;
          EXIT WHEN c%NOTFOUND;
          DBMS_OUTPUT.put_line (i);
          v_stmt := 'select * from table(dbms_xplan.display_cursor(:v,null))';
          execute immediate v_stmt using i;
       END LOOP;
       CLOSE c;
    END;
    /However because your SELECT statement returns several rows you need to adapt your code to process all rows returned (as already suggested in first reply to your message).
    Instead of using PL/SQL, I recommend to generate a SQL file using only SQL and then to run the generated SQL file.
    For example:
    spool edx.sql
    set serveroutput on
    declare
    v_stmt varchar2(100);
    v_q char(1):='''';
    begin
    dbms_output.put_line('spool edx.log');
    for s in (select sql_id from v$sql where child_number >2)
    loop
      dbms_output.put_line('select * from table(dbms_xplan.display_cursor(' || v_q || s.sql_id || v_q || ',null));');
    end loop;
    dbms_output.put_line('exit');
    end;
    spool ofThis generates a SQL file similar to :
    spool edx.log
    select * from table(dbms_xplan.display_cursor('5rygsj4dbw6jt',null));
    select * from table(dbms_xplan.display_cursor('5rygsj4dbw6jt',null));
    select * from table(dbms_xplan.display_cursor('5rygsj4dbw6jt',null));
    select * from table(dbms_xplan.display_cursor('fsbqktj5vw6n9',null));
    select * from table(dbms_xplan.display_cursor('6q42j0018w7t8',null));
    select * from table(dbms_xplan.display_cursor('a5mmhrrnpwjsc',null));
    select * from table(dbms_xplan.display_cursor('3c1kubcdjnppq',null));
    select * from table(dbms_xplan.display_cursor('3c1kubcdjnppq',null));
    select * from table(dbms_xplan.display_cursor('9gkq7rruycsjp',null));
    select * from table(dbms_xplan.display_cursor('f0wj261bm8snd',null));
    select * from table(dbms_xplan.display_cursor('ab3swhv5g138y',null));
    select * from table(dbms_xplan.display_cursor('6vgvyh4xw9c5g',null));
    select * from table(dbms_xplan.display_cursor('ak5crjygnpk60',null));
    select * from table(dbms_xplan.display_cursor('9p6bq1v54k13j',null));
    select * from table(dbms_xplan.display_cursor('19x1189chq3xd',null));
    select * from table(dbms_xplan.display_cursor('7sx5p1ug5ag12',null));
    select * from table(dbms_xplan.display_cursor('730vdzhng6m6g',null));
    select * from table(dbms_xplan.display_cursor('730vdzhng6m6g',null));
    select * from table(dbms_xplan.display_cursor('0v3dvmc22qnam',null));
    select * from table(dbms_xplan.display_cursor('0v3dvmc22qnam',null));
    select * from table(dbms_xplan.display_cursor('a1zv6wju3ftgv',null));
    select * from table(dbms_xplan.display_cursor('7ng34ruy5awxq',null));
    select * from table(dbms_xplan.display_cursor('7ng34ruy5awxq',null));
    select * from table(dbms_xplan.display_cursor('b2gnxm5z6r51n',null));
    select * from table(dbms_xplan.display_cursor('b2gnxm5z6r51n',null));
    select * from table(dbms_xplan.display_cursor('g4gp07gt2z920',null));
    select * from table(dbms_xplan.display_cursor('1gu8t96d0bdmu',null));
    select * from table(dbms_xplan.display_cursor('g00cj285jmgsw',null));
    select * from table(dbms_xplan.display_cursor('g00cj285jmgsw',null));
    select * from table(dbms_xplan.display_cursor('g00cj285jmgsw',null));
    select * from table(dbms_xplan.display_cursor('bn4b3vjw2mj3u',null));
    select * from table(dbms_xplan.display_cursor('38243c4tqrkxm',null));
    select * from table(dbms_xplan.display_cursor('2abjfnvy5rkyg',null));
    select * from table(dbms_xplan.display_cursor('350f5yrnnmshs',null));
    select * from table(dbms_xplan.display_cursor('350f5yrnnmshs',null));
    select * from table(dbms_xplan.display_cursor('3s1yukp05bzg6',null));
    select * from table(dbms_xplan.display_cursor('3s1yukp05bzg6',null));
    select * from table(dbms_xplan.display_cursor('1tgukkrqj3zhw',null));
    exit
    PL/SQL procedure successfully completed.Edited by: P. Forstmann on 20 mars 2013 19:06
    Edited by: P. Forstmann on 20 mars 2013 19:33

  • Can't run executable file by LV7.1

    Dear all,
    I am surprised I can't build and run executable file by LV7.1.
    I used to write some vi with LV7.1, and built the executable file according to these vi. It was no problem to build and run this executable file that time. Now I can open these vi well with LV7.1, bu I can't run this executable file well, it will prompt a error, please refer to the attachment. I try to build a executable file according to a simple vi, and then I can't run this exe file well any more.
    Can you help me to solve this problem? Thank you in advance.
    Evan
    Solved!
    Go to Solution.
    Attachments:
    Error prompt.jpg ‏2305 KB

    @Christian: That's not correct.
    One reason for this to happen is if LV 7.1.1 is installed and then you install an application including run-time engine built in 7.1. This corrupts the run-time engine.
    See here: http://digital.ni.com/public.nsf/allkb/680E61A4D02158A186256F7A0073C228
    Daniel

  • Troubles with opening attachments when user have restristed priviledge to run executable code only from ProgramFiles and Windows folders.

    I try to restrict users from executing any potentialy dangerous files. So according to Windows policies I set. Users can run any application from Program Files, Program Files (x86), Windows and all users' desktop folder. Users have no permission to write anything in this folders. When user duble clicks for example *.doc document on his desktop - document opens with MS Word just fine. But when user try to open this document from e-mail attachment directly (selecting open with MS Word, instead of saving) - he sees an error - "This action is restricted by local policy. Ask your system administrator." (not exact text).
    So I want, users able to open attachments from Thunderbird automatically, but not able to run any application or link, except Program Files, Program Files (x86), Windows and all users' desktop folder. How can I get this result?
    Thanks in advance.
    Serious Diman.
    P.S. Sorry for my bad english. It's not my native language.

    Thanks for answering.
    I found out what was happening.
    This strange "bug" affects several computers with Windows 7 Ultimate in my case.
    When you create SRP (software restriction policies) it creates two default rules for running programs: windows folder and Program Files folder. Manually I add "C:\Program Files (x86)" in unrestricted locations. BUT Windows and Program Files folder linked in default rules not directly, but through registry keys. And this part seems tricky. You CAN run executables from Program Files. You CAN run executables from Program Files (x86). But if Thunderbird or Firefox try to run MSword, or excel or writer for opening *.doc or *.odt or some other downloaded file - running from Program Files blocked by SRP.
    So to resolve this problem you just need to replace rules for undirect paths like %HKLM/software/microsoft/windows ... etc% with direct ones, such as "C:/Windows" and "C:/Program Files/". After this all works fine. Attachments and downloaded files opens automatically without problems.

  • Run executable before installation

    Hello all,
    I need small information. Please help me.
    In LabVIEW Installer Window at Advanced settings, we have
    Run executable at end of installation
    Run executable before uninstallation
    Is there is any option for “Run executable before installation”?
    I want to run one LabVIEW exe before installing new software (if Runtime engine is exits in deployment PC).
    Please let me know if anyone have idea.

    The NI installers don't give you a lot of control of how things are done.  Let say you want to allow you users to have a minimum, complete, or custom install of tools.  The NI installers don't have that option.
    In the past when I need more control of how installers run, and their options, I've used a couple of free tools that I've mentioned in the past.  Inno Setup, and the helper program ISTool.
    Using this method I can make an installer, that runs a different installer first, then runs the NI installer.

  • Does hide a frame means do not run/execute that frame(and its query) ?

    Hi Everyone
    Does hide a frame means do not run/execute that frame(and its query) ?
    Thank you
    Bryan

    No. It means setting the Format Trigger of it to reurn FALSE, so it won't display.

  • Running executable on clients,Share your experience

    I have installed Oracle 9i AS on application server environment and deployed my forms and big application on this env.
    Now I tried to run my reports (created as executable files) and they opened at the server and hangs the client till I close the exe. on the server.
    Any body knows how can I deal with the client to run executable or share your experience.
    Many Thanks
    Adel Yousef

    I've done some evaluation of Forms and Reports 6i. Of the two, Reports seems to have most of the problems, but that is another discussion. From my notes I can recall:
    Forms layout: If you delete a frame, all prompts dissapear. Reappear
    when you close and open layout again.
    Forms generic: Readme says 6i is patch compatible with 6.0. If you modify a form with a static record group in 6.0.8 it works ok. If you then recompile with 6.0.5 all static record group values are gone!
    The bug where you may not get the property palette by pressing F4
    before other windows have been activated still exists.
    It appears that the (layout) window has focus, and from GUI point
    I think it does, but cant receive events.
    This behaivour can something be noticed in runtime also.
    I don't think it is a problem with Windows as no other application
    has this behaviour.
    The issue of existing state of package
    still exists, must try it with sql+
    If you change a stored procedure in a way
    that its signature doesnt change, forms
    runtime still complains the first time
    you call the procedure. The second time
    it works ok. Strange.
    Could not generate form with Ctrl+T. Tried Sh+Ctrl+K but got
    PDE-PER001 Internal error (depep 2).
    Tried again, worked.
    Runtime: Why are all my prompts with background=white?
    Charles M Kivio
    Carus Ab
    Certified Oracle Solution Partner
    null

  • Run executable at end of installation. Admin privileges?

    Hi all,
    As always, please forgive this questioning if it has already been answered somewhere.
    Here is my scenario:
    I have a batch file with the following in it:
    cd C:\Temp\install\anotherInstaller
    setup.exe /q /AcceptLicenses yes
    "anotherInstaller" is an installer for a different LabVIEW application that I am including with the main one.
    I run the batch file from the "Advanced" page of my installer under "Run executable at end of installation."
    I run my top level installer with admin privileges in Windows 7 x64.
    The installer hums along and everything works as expected until the batch file gets called.
    The batch file gets called successfully by my top level installer, but "anotherInstaller" doesn't run.
    The batch script works fine if I run it by itself with elevated privileges, but doesn't run anotherInstaller if it is called by my top level installer.
    My theory is that the executable called under "Run executable at end of installation" does not execute with elevated privileges, even if the top level installer does.
    Can anyone verify this?
    Is there any other reason why my second installer won't work?
    Thanks in advance,
    Jim

    Okay, it does appear to execute with elevated privileges, and I have a new clue:
    When I turn off the "/q" option on anotherInstaller, the following message appears in a dialog:
    "Error: Another Installation/uninstallation session, deployment session, or NI Update Service is running. Finish that session and try again."
    Ugh.  Anyone know of a good way to "piggyback" another LabVIEW built installer as part of a batch file?  (I have a whole ton of other housekeeping I handle in my batch file, so I can't very well avoid using the batch file.)

  • Running executable

    Hello,
    I'm attempting to run executable jar in device emulator, but I'm having some difficulty. I have broken the invocation to run executable into 2 files: MyApp.lnk and args.txt.However, I'm receiving the following error:
    java.lang.ClassNotFoundException: Files\Company
    at sun.misc.Launcher$AppClassLoader.findContainer(Native Method)
    at sun.misc.Launcher$AppClassLoader.access$400(Unknown Source)
    at sun.misc.Launcher$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Unknown Source)
    at java.security.AccessController.doPrivileged(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.doClassFind(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.CVM.runMain(Unknown Source)
    Here's what I have in the 2 files:
    MyApp.lnk:
    255#"\Program Files\Company Name\AppName\bin\cvm.exe" -f "\Program Files\Company Name\AppName\args.txt"?\Program Files\Company Name\AppName\bin\IconsLib.dll, -101args.txt
    -Xbootclasspath/a:"\Program Files\Company Name\AppName\database\jsr169.jar" -classpath "\Program Files\Company Name\AppName\MyApp.jar" MyApp.MainAny help is appreciated

    Hello,
    I just wanted to give an update on some the changes that were made to correct the problem. I changed to using relative paths. Here's what was done to the args.txt file:
    -Xbootclasspath/a:".\\database\jsr169.jar" -cp "\.MyApp.jar" myapp.MainThe error I'm receiving now is:
    java.lang.ClassNotFoundException: myapp.Main
    at sun.misc.Launcher$AppClassLoader.findContainer(Native Method)
    at sun.misc.Launcher$AppClassLoader.access$400(Unknown Source)
    at sun.misc.Launcher$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Unknown Source)
    at java.security.AccessController.doPrivileged(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.doClassFind(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.CVM.runMain(Unknown Source)
    any help is appreciated.
    Edited by: wrappingduke on Nov 29, 2008 11:53 AM

Maybe you are looking for

  • Better way of managing heirarchical groupings?

    Sort of a feature request, but also a question to other users about different approaches you like to use.  I've often wished for a way of grouping layers in a heirarchy that is independant of layer order, like you can do in most 3D apps (or -ahem- no

  • How to make display deletions as ON in iw33 ? by default it will be 'OFF" ?

    hi can u pls help me to find out the exat user-exit to achive this functionality iw33 edit---> display deletions - > on

  • Photoshop Cs5 Crash On Launch

    Last night it was working fine. I set my computer to update and restart, left, came back this morning and now none of my Cs5 programs work. This is the crash report specific to Photoshop. Hopefully someone can help me find the problem and fix them al

  • Rman backup 11g rel2

    Hello Guys I was testing rman backup on oracle 11g rel2 , logging time for backup using rman as in 2 ways 1) full database backup 2)full database backup /parallel feature say "section size 200M" in script i was expecting due to new 11g feature option

  • WARNING: Unable to cache frmrwinteg.jar

    I am seeing this warning message in my Java console. I am running 10g Forms and Reports. Here is my current dilemma - I am able to download 3rd party forms to a local drive, modify them, save and compile them, and then have my changes show up when I