Modifying a running executable file

Does Solaris allow you to modify a file that is currently
executing.? I get a core dump when the exe is changed.
Some Unix systems used to give "Text file busy".

By removing the file first, I assume the file (inode)
remains
in use (mmaped) until closed(unmapped) when the file
exits. Correct. You have an inode with 0 filesystem references
(links). The kernel does not remove the inode's data
block until the last user of that inode has released that
inode (closed filedescriptors, or unmapped mapped all
blocks from that inode).
The newly copied file(same name) gets another
inode, thereby not modifying the original.Correct.
Does Solaris page to/from the binary file ?Yes. Read-only pages (code) for the binary and other shared
libraries are paged in from the file/inode. Writable
regions of the binary/shared library (initialized data
space, bss) are read from the file/inode and my be written
out to swap space, when the system runs out of memory.
Does the file get copied into swap space ?Only when the system runs out of memory.
Does it page to/from the swap space ?For writable page mappings that were previously paged out
to swap space: yes.
Is the performance of the file system containing the
file an issue ? (if its paging from there)Assuming you have a really slow filesytem (overloaded disk
for example) and you have lots of binaries on that disk
(huge amounts of read-only pages that are paged in directly
from the slow filesystem) and the system is low on memory
(i.e. the pager removes/frees pages for the binaries and
these must be reloaded from the filesystem once the code
executes again), then yes, performance of the filesytem
would be an issue.

Similar Messages

  • 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.

  • 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.

  • 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

  • Running executable files - which is the best way?

    Is it best to operate three of the same re-entrant vi files from three independently running executable files or is it best to run all three of the same vi files from a single instance of labview?
    I have a re-entrant vi that I created with NI Developer Suite 2006, V8.2.  I saved that vi as three different named vi files for the purpose of creating an executable file from each of them.  These executable files control three identical devices via three serial ports from a USB to serial port hub.  The executable files are run simultaneously on one laptop and they do operate for the most part as expected.  There is a concern about 1 possible IRQ conflict (best guess is that two of the three com ports might be using the same IRQ; com5, com6 and com7 are being used) because one of the three com ports didn't appear to be passing commands as expected like the other two ports did when I first started running the vi.  I'm using a separate port monitoring program to view the transfer of commands to and from the device conected to the serial port to show me the command code being generated to the device and received from the device to validate the proper operation of the executable vi and to time stamp the transfers.
    /BCU002
    Hardware Engineer•Design Reliability/Performance and Validation Group•Wavecom, Inc. - Research Triangle Park, N.C.•http://www.wavecom.com

    Megan,
    Thanks for the reply!  First I want to answer your questions.  I do have three independent executables operating simultaneously and each one has been assigned it's own Com port.  The text file is intended to time stamp the ADC reading every two hours.  Each UUT has it's own file that documents the ADC value independently.  I do this to validate the operability of the UUT during the test and doing so also shows me when the UUT fails to operate.  However this problem that I'm havinig with the VI has been providing me with misleading results about the durability of the UUT and I can't figure out why it happens after 12 hours.
    The UUT is  working okay.  I checked Friday it and reset the program and the power to it and it's been running ever since through the weekend.  However the one problem that remains consistent is that after 12 hours the readings for the ADC, which is what I use to verify that the unit is transmitting RF into a dummy load while in factory test mode, just start showing up as 0 when they should be in the high 100's.  One of the UUTs has an RF power meter connected to it's RF antenna and it's been working as expected when I start the test I have a software engineer running the exact same test on the same type of UUT using an entirely different software tool and it's not having any of these symtoms after running for days on end, uninterrupted.  Unfortunately I can't use that software tool for my work because I can't control it with Labview...yet.
    I'd be happy to email you a copy of the VI that I created directly if you think that you can look over it to see if there are any design problems that I need to repair.
    I've attached a compressed file containing a bitmap of the control panels that I use during my test and I've included two NI spy files for you to see what's happening while my VIs are running and the 3 text files that recorded all of the ADC readings from the UUT over the weekend.  I hope you have the time to look at them because  can use the help.
    /BCU002
    Hardware Engineer•Design Reliability/Performance and Validation Group•Wavecom, Inc. - Research Triangle Park, N.C.•http://www.wavecom.com
    Attachments:
    FTM Control 123.zip ‏467 KB

  • Error while running executable file through java in WinNT

    I would like to run an executable file with Java.
    - If I try with notepad or paint, i.e. Windows Applications,
      I have no problem.
    - I also can run Non-Windows-Own Applications, except one.
      I get an error message, if I want to run this program through Java.
    I have tried following commands to run an executable file.
    Runtime.getRuntime().exec("cmd.exe /c "+command);
    Runtime.getRuntime().exec("cmd.exe /c start "+command);
    Runtime.getRuntime().exec("cmd.exe /c start /wait "+command);
    Runtime.getRuntime().exec("cmd.exe /k start "+command);
    command : the path to the executable file
    I can run the application directly, if I click the icon on desktop,
    but not through Java.
    here is the error message I get
    screenshot : http://www.aykut.de/error_message.jpg
    Text : "Security Check failure"
            The Logon System has been tampered with.
            The Administrator will need to re-install.
    my Idea :
    The application is "old".
    I think it was written for Win 3.1.
    Therefore I don't know if there is any other
    possibilty to run a "DOS Exe File" through Java.

    I have just figured out how it works,
    if somebody else here in forum have this problem,
    here is the solution :
    String path = "F:\...\...\Application.exe";
    String envDir = path.substring(0, path.lastIndexOf("\\"));
    String[] command = {"cmd.exe", "/c", "start", "/wait", "/D"+envDir, path};
    Process process = Runtime.getRuntime().exec(command);
    "start /Dpath" => path: environment directory F:\...\...\
    "start /wait" => wait until Application.exe terminates
    if you use Win95 or Win98 use command.com instead of cmd.exe
    Aykut

  • How to run executable files via ProcessBuilder existing in another drive??

    hi,
    I was using Runtime Class to execute other programs through my application but as I'm using j2se 5 I want to make use of ProcessBuilder Class and utilize its some added features. I wanted it to run my .bat file located in some other folder than the current class file it is showing me IOException. I'm running a class file that is in the folder D:\CyberStation\classes\build\ and I want to execute the .bat file located in D:\CyberChat\build\. Any suggestion is appreciated...
    regards,
    Jay

    The following code was for the .bat file located in the same directory where I am running my .class file:
    ProcessBuilder pb=new ProcessBuilder("cmd.exe","/C","registry.bat");
    Process p=pb.start();Now what I wonder is what are the things that I need to change to make it capable of running .bat or any other executable file in some other directory. I tried:
    ProcessBuilder pb=new ProcessBuilder("cmd.exe","registry.bat");
    File basedir=new File(File_name.class.getResource(File_name.class.getName()+".class").getFile()).getParentFile().getParentFile().getParentFile().getParentFile();
    pb.directory(basedir+"CyberChat\build");
    Process p=pb.start();but didn't success.

  • Can't run executable file

    Hello,
    I'm using a PowerBook G4 with OS 10.3.9. I want to run an executable file. However, whenever I attempt this, I'm denied permission to do so. I'm the administrator. I've reset the permissions on the file I'm trying to run, on Terminal itself and wherever else I can think of. What else do I need to do?

    In addition, if it is a name.exe, see my FAQ*:
    http://www.macmaps.com/macosxnative.html#WINTEL
    - * Links to my pages may give me compensation.

  • Running executable file in target machine

    I have labview 7.1 professional version. I have created a executable file for target machine. When the executable file run at target machine, it needs all drivers and run time engine.
    I have installed drivers in target machine but not run time engine.
    Do I have to create a installer file which includes run time engine? If I only have *.exe file instead of installer file, how can I install run time engine?
    Do I have to put all subvi in the same directory as the one when the program was developed?
    Thanks.

    I believe that you can install the runtime engine with your original professional version CD. Just choose the custom install and uncheck everything except the runtime engine. If you use the application builder, it automatically puts subvi's where they belong. I've never tried it manually, but I suspect that they need to be in the same directory structure as the one where it was developed.
    - tbob
    Inventor of the WORM Global

  • Problems In Running Executable File

    I Have A LabView Program Where The Sub VI Is a VI Tempelate,(I Already Tried Using Reentrant Function Through A VI,But I Had Some Issues<Which Caused The Program To Not Work Correctly>, Hence The *VIT)
    The Problem Is While Creating An Executable File 
    It Just Does Not Call The SUB VI
    I Tried Changing The Path Name To Inside The Application.exe But Still No Luck
    I Use Labview 2012

    Hello,
    Everyone, I guessed we meet the same issue.
    During debug mode, the main program can load vit file by vit file path, the interface and function both are ok. as soon as I build all files to exe file, the program can work well but it just means function is ok, the interface invoved vit file all couldn't be showed normally.
    I copied the original vit file to build package, there isn't any problem in Runing Executable File.
    This is just one way to solve this problem. I don't think it's the best way, who can provide a better idea?  which way is only to include vit file as other vi during build exe package, and anyone don't easy change original vit file, thanks!
    Champion

  • Run executables jar file

    How to run executable files from a jar file?
    One solution is to extract the executable and run it. Is there other solution ?

    How to run executable files from a jar file? What kind of executable files do you mean?
    If you mean java executable files, take a look at
    http://java.sun.com/docs/books/tutorial/jar/basics/manifest.html#applications

  • Running exe files from java applications

    Hello All,
    Is it possible to run executable files from java applications?
    I need to run an exe file on the client from the server machine, the exe could reside on either the server or any other machine on the LAN. Is it possible to specify the path of where the exe resides, and run it on a client machine?

    HI,
    I tried to launch a MS Word application using runtime.exec but it gives me some problem
    The foll. code to launch a txt file using notepad works.
    Runtime rt = Runtime.getRuntime();
    String[] callAndArgs = {"notepad.exe","C:\\coo7\\wizard.txt"};
    Process child = rt.exec(callAndArgs);
    However, oif I try to launch a MS Word application, it asks for the entire path of WINWORD.exe, (unlike just specifying notepad.exe as the first argument in String[] callAndArgs) and this can vary from one machine to another.. how do I get around this?
    The foll. code snippet works but the complete path of where WINWORD.exe might be installed on any machine, is not fixed:-(
    Runtime rt = Runtime.getRuntime();
    String[] callAndArgs = {"C:\\Program Files\\Office\\Office10\\WINWORD.exe","C:\\coo7\\wizard.doc"};
    Process child = rt.exec(callAndArgs);
    Any idea/suggestions pls..

  • How can I run a Local PC executable file from Enterprise Portal?

    I want to run local PC executable files from inside the portal. To be more specific I want to be able to open the Outlook and some powerbuilder executable applications.
    How can I do it?

    If you absolutely want to do it, you can use vbscript for it (though there are a lot of security contstraints)
    See Re: Displaying office programs

  • How can I run a labview executable file inside a VI

    How can i add and run a labview executable file inside the vi and grab the output of the executable file to be used in the vi?
    mytestautomation.com
    ...unleashed the power, explore and share ideas on power supply testing
    nissanskyline.org
    ...your alternative nissan skyline information site

    Hi cmdrb,
    to run an executable you use SystemExec function.
    To get the output of your (LabVIEW-made) executable you need to program some data transfer means: you may use network functions or file functions. In both cases your "LabVIEW executable" needs to provide that options…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How can I open a subvi when running a vi in an application (executable file)

    I have a vi that I converted into an executable file.  I would like to run it and at the same time be able to open the front panel of one of its subvis.  Does anybody know how to do that?
    Thanks,
    Jerome.

    You can set the SubVI to "Open Front Panel when Called" and "Close Afterward if Originally Closed" - that makes it a pop-up window. When your main calls it, the subVI window opens up. You do stuff, click the DONE button, and it disappears, and the main is up front again. (Make sure your subVI is MODAL if you do this).
    You can use the VI SERVER to load the VI, given a path to it. You can set the subVI to "Open Front Panel when Loaded", or you can set FRONT PANEL.OPEN to TRUE when you want it to appear, and FALSE when you want it to go away.
    You can make a subpanel on your main, and have the subVI inserted into that.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

Maybe you are looking for