How to monitor file changes

all experts.........
i'm wondering if it is possible to monitor the file changes and load updated file contents dynamically for a java application. i have some simple txt file. i'm taking my input data from these files for the simulation. during the sim some of these data will be changed and i need to take these new data as a input for the next step. any idea would help me a lot. thanksssssssss in advance.
arun

There's a few ideas in [url http://forum.java.sun.com/thread.jsp?forum=4&thread=431288]this thread

Similar Messages

  • How to Monitor a Change in an Array

    I have a class called Array, and this class is just able to add or remove an Object to/from the array.
    But I need to automatically increase the size of the array when a new Object is inserted to the array with full capacity. And I don't want to change any codes for current add and remove methods. So to do this, I think I have to be constantly monitoring the changes in the array somehow. How do I do this?
    Thank you.

    Is this for a class, and are you prevented from using ArrayList or other classes from the Collections group?

  • How a zip file changed to jar file

    Hi,
    implfactory.properties in <WASstudioHome>\runtimes\base_v51\properties has to be zipped and changed to type of jar and has to be added to the classpath of my application.Can any one help me how to make it?
    thank u
    Dharani

    First save it outside mail, e.g. on desktop; simply drag it there or use save function of attached files in Mail.app
    If you double click on it and does not open, the file is corrupt or incomplete.
    If you did that while in Mail.app, I assume the download had not yet been completed at the time you clicked on it.

  • Monitoring file changes in real-time

    Hi,
    Is it possible to monitor which files are being modified in Solaris within an application?
    For example Windows provides hooking mechanism and once you call the required system calls, you become able to capture file system events in real-time. In fact, real-time virus protection applications totally rely on this feature. Another way is to code virtual device drivers, as far as i know. Does Solaris 9/10 provide an API, signaling or a callback mechanism to implement a such kind of application? Or is it possible to write virtual device drivers in Solaris to achieve this functionality?
    Your help will be appreciated.
    Best regards.

    Hi,
    I'm not spamming the question to the all subjects titles of the forum and don't expect the information in pieces.
    I know that multiple postings is not nice. And my aim is not to flood the same question on the all of the subject links i see in order to go out for an information hunt even if the titles are relevant or irrelevant.
    I just posted the question to the subject titles i thought relevant as this is the way it should be.
    Best regards.

  • Using bootcamp was installing windows xp, at the select ntfs or fat format selected "leave the current file system intact." How can that be changed to a correct choice. Mac side opens correctly. Windows shows disk error.

    using bootcamp, was installing windows xp, at the select ntfs or fat format mistakenly selected "leave the current file system intact." How can that be changed to a correct choice. Mac side opens correctly. Windows shows disk error. and doesn't respond to press any key. When looking in the startup disk section, windows on boot camp can be seen, but not selected. (13"MacBook Pro  10.6.8)

    Have a read here http://support.apple.com/kb/TS1722 for solution.
    Stefan

  • I  made the mistake when configuring a external monitor, of changing the mhz to 75. When I close the MBP I now get a black screen on the monitor. How do I change it back?

    I  made the mistake when configuring a external monitor, of changing the mhz to 75. When I close the MBP I now get a black screen on the monitor. How do I change it back?
    I have a MacBook Pro with the latest operating system, trying to configure a Gateway flat monitor with vga.
    Thanks

    Apple menu -> System Preferences -> Displays.
    System Preferences can also be found in the Hard drive -> Applications folder.
    Resetting the PRAM can help bring displays back to factory settings if you can't find what you need:
    http://support.apple.com/kb/ht1379

  • Need to monitor any file change in the system, in real time

    Hi,
    I am running a program that I suspect may be doing changes in the filesystem, but I do not know which ones. I would like to know if there is a daemon/program that could help me monitor those changes. I tried AIDE, however, it works by creating a database of checksums for each file and does not report in real time potential changes. I would rather use a program that logs changes and timestamp them. Furthermore, AIDE is not useable with /var files, since there are many of them and they change so often. Is there another good solution?
    Alternatively I would like to run the program with monitoring. For instance, run the process as:
    monitor_program my_program_to_monitor logfile
    This would dump in logfile what my_program_to_monitor does to the filesystem.
    Thanks in advance.
    Last edited by zebulon (2011-08-24 15:44:10)

    no, at least with inotifywait, it is not possible. once you know what file is being changed you can use "lsof" to see what process have opened that file.
    i tried the following to search lsof output first thing when inotifywait finds a file change.
    file=$(inotifywait -r /home/mang/watch --format %w | sed 's/.$//'); lsof | grep $file
    while in another terminal running "vi /home/mang/watch/test"
    the output is:
    zsh 12574 mang cwd DIR 254,11 4096 4723089 /home/mang/watch
    vi 16790 mang cwd DIR 254,11 4096 4723089 /home/mang/watch
    try it!

  • How to reset or change "what should firefox do with this file" option in Firefox 3.6.6

    How to reset or change "what should firefox do with this file" in Firefox 3.6.6.
    Accidentally I changed it to save file for .pdf files and now I want to reset it to default asking whether to open or save.
    any help please
    Thanks,
    raj

    Check the setting in Tools > Options > Applications
    See "Reset Download Actions" and "File handling in Firefox 3 and SeaMonkey 2":
    http://kb.mozillazine.org/File_types_and_download_actions

  • How To Make File Association Changes Permenant

    I'm having a problem with file associations reverting back every time I turn of my computer.
    I'm using Finder "change all" function to change the file association.  It works until I turn off my computer.  Once rebooted file associations return.
    It's a real hassle.  For some reason MP4 files keep getting associated with Windows media player. Everytime I try to open one, parallalels loads up windows. 
    Any advise?

    ekohanowich wrote:
    how to make file able to open on pc
    I assume you mean Windows Computer.
    in Keynote:   file > export > PowerPoint
    Each Windows machine will need  Powerpoint or PowerPoint Viewer installed.

  • Is it possible to monitor State change of a .CSV file using powershell scripting ?

    Hi All,
    I just would like to know Is it possible to monitor State change of a .CSV file using powershell scripting ? We have SCOM tool which has that capability but there are some drawbacks in that for which we are not able to utilise that. So i would like
    to know is this possible using powershell.
    So if there is any number above 303 in the .CSV file then i need a email alert / notification for the same.
    Gautam.75801

    Hi Jrv,
    Thank you very much. I modified the above and it worked.
    Import-Csv C:\SCOM_Tasks\GCC2010Capacitymanagement\CapacityMgntData.csv | ?{$_.Mailboxes -gt 303} | Export-csv -path C:\SCOM_Tasks\Mbx_Above303.csv;
    Send-MailMessage -Attachments "C:\SCOM_Tasks\Mbx_Above303.csv" -To “[email protected]" -From “abc@xyz" -SMTPServer [email protected] -Subject “Mailboxex are above 303 in Exchange databases” -Body “Mailboxex are above 303 in Exchange databases" 
    Mailboxex - is the line which i want to monitor if the values there are above 303. And it will extract the lines with all above 303 to another CSV file and 2nd is a mail script to email me the same with the attachment of the 2nd extract.
    Gautam.75801

  • Database file changed ora-01251   how to solve?

    hai all,
    database file changed ora-01251 how to solve?
    suddenly changed when i try to connect Oracle Management server(OMS)
    thanks
    rcs
    =======
    os:winxp
    db:Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
    SQL> Recover database
    ORA-00283: recovery session canceled due to errors
    ORA-01110: data file 9: 'F:\ORACLE\ORADATA\BIMPEX\BIMPEX.ORA'
    ORA-01122: database file 9 failed verification check
    ORA-01110: data file 9: 'F:\ORACLE\ORADATA\BIMPEX\BIMPEX.ORA'
    ORA-01251: Unknown File Header Version read for file number 9
    WRONG FILE TYPE
    F:\ORACLE\ORADATA\BIMPEX\BIMPEX.ORA
    ========

    Hi..
    Would like to know if any changes were done before this error popped up..
    From metalink :--
    >
    Error:     ORA-1251
    Text:     Unknown File Header Version read for file number %s
    Cause:     Read of the file header returned a record but its version cannot be
         identified. Either the header has been corrupted, or the file is not a
         valid database file.
    Action:     Have the operating system make the correct file available to the
         database, or recover the file.
    >
    If the file is corrupted, then take the datafile offline and open the database.If it was renamed, then you can check metalink Doc ID:      230449.1
    if the database is in archive log mode, you can refer to metalink Doc ID: 333620.1
    HTH
    Anand

  • How can I do change File Character when I export application (4.2.1.00.08)

    Hello,
    Please, help me!
    I need to change "File Character" when I export application with Apex 4.2.1.00.08 version, but this option, is not possible. The ComboBox already select with
    "Unicode UTF-8]', but I need "ISO-8859-1 - Europa Ocidental", how can I do change it?
    Thanks

    Please register for a "real" user account rather than the anonymous user7266483.
    You can not change it on the export...this is simply set to whatever is in effect in the DB.
    However, it is totally unnecessary to change it on export. If the database into which you need to import the exported application is "ISO-8859-1 - Europa Ocidental", at the time you begin to import, it will default to "ISO-8859-1 - Europa Ocidental". You need to change this to the character set under which it was exported. In this case, it was "Unicode UTF-8".
    It does not matter that you export and import in the same character set. It only matters that you correctly set the import to match how it was exported.
    -Joe

  • Aperture: How can I batch change one part of a file name

    I have a file name format for my motor sport pictures
    EventNameYear_CarNumber_ImageNumber
    I have just named 600+ images but after publishing the images, I spotted I put the event year as 2014 instead of 2015.
    How can I batch change the year but leave everything else the same? I've been through the batch change options but cannot work it out
    I am on Aperture 3.6, MacBook Pro on Yosemite 10.10.2
    Thanks

    So you renamed the versions in Aperture, the rename was not just done on the export?
    The names could be changed either in Aperture or on the exported files but as was noted it would require a script to do it. Doing the rename on the exported files would be the easiest, Applescript or possibly even Automator or any number of 3rd party apps could handle this rather easily. Name Mangler comes to mind as possibly being able to handle this.

  • How to view the change immediately after a java file is modified without restarting server or redeploy?

              Hi All,
              How to view the change immediately after a java file that is used in jsp is modified
              without restarting server or redeploy?
              Moreover, it is better to keep the original session.
              Any suggestion is appreciated.
              Kammau
              

              Hi,
              In order to have a new version of a java class, the current classloader must be
              deleted and a new one created. This is what redeployment does. I believe that
              this is more of an issue with Sun's implementation of classloaders. You could
              ask BEA support (719.232.7878) and see if they have any plans to periodically
              check jar files to see if java class file timestamps and destroy and re-create
              classloaders on the fly.
              1) You will still have to accept the performance hit of destroying classloaders
              and creating new ones. There isn't any way around that.
              2) I would think you would want to have more explicit control in production and
              integration anyway.
              You can redeploy applications from the command line (script) file not just the
              console.
              Hope this helps,
              pat
              "Kammau" <[email protected]> wrote:
              >
              >Hi All,
              >How to view the change immediately after a java file that is used in
              >jsp is modified
              >without restarting server or redeploy?
              >Moreover, it is better to keep the original session.
              >Any suggestion is appreciated.
              >
              >Kammau
              

  • How to monitor Alert file large in EM Grid

    Hello,
    In Enterprise Manager 9 we used to monitor Alert File Large.
    I am not able find this in Grid Control.
    Can anybody tell me how to monitor this metric in OEM 10 GRid?
    Best regards,
    Jvries

    You must to select the host target and metric and policy issues
    Select all metrics and search File or Directory size MB
    You can to add the file when you want to monitor the size and
    you must to enable a response action when the critical theshold appear
    The response action must be a shell script like this
    #/bin/ksh
    #if you want backup
    cp /directory/file.log /backup_destination/file.log.bak
    #for clean the file and his size was empth
    /directory/file.logRemember that you want enable the credentials for host and the owner of agent had rights of read and write in the location of file
    Regards

Maybe you are looking for

  • How to install TWAIN plug-in for Adobe Photoshop CS5

    Adobe Photoshop CS4 listed my Epson Perfection V500 scanner as a selection under "File-Import". When I installed Adobe Photoshop CS5, I noticed that scanner selection is not there. I contacted Epson technical support and they said Adobe Photoshop CS5

  • How do I get my movies from my iTunes library on my old laptop to my new mac pro?

    How do I get my movies from my itune library on my old laptop to my new mac pro?

  • Accidentally uninstalled Quick Time

    I accidentally uninstalled quick time. My kids are now affraid all there music is gone. What do I do?

  • Re: noise level and lost connection

    I am with Sky Broadband on a BT leased line (who I pay for my BT Telephone bill). I have had terrible problems with my ADSL connection ever since I subscribed for Sky broadband over 5 years ago and more. I live in Halton Village in Runcorn, Cheshire

  • No Wireless for the Weary!

    I have a WRT54GL that was working fine until I had to replace my modem and then my desktop computer itself. When I attempted to sync the modem and router, no luck. I am able to follow the directions on the disk to step 9 where it asks for Advanced Se