Run Ping cmd in interval time???

hi all experts,
I have a projrect is: I want to test some device in my network is die or not by using ping command. My purpose is run Ping cmd in interval time (for example 10 s). And I want to write a application (not applet).
Can you tell me how do I do "my program is automatic run Ping cmd in interval time"?.
Thank you for you help in advance.

Runtime.exec()
Timer
And lots of other bad choices, too. You know, you could search the board, but I surely don't mind if you don't. A fresh answer to "how to ping in Java" is much better than 300 old ones.

Similar Messages

  • Interval timer for nano

    I got my nano to run with but I really want an interval timer to let me know when a min or so has gone past. I have an app on my Iphone that can do it. Is there anything I can do to have something like this for my nano?

    try this application http://interval-timer.com

  • How can I save my data and the date,the time into the same file when I run this VI at different times?

    I use a translation stage for the experiment.For each user in the lab the stage position (to start an experiment) is different.I defined one end of the stage as zero. I want to save the position , date and time of the stage with respect to zero.I want all these in one file, nd everytime I run it it should save to the same file, like this:
    2/12/03 16:04 13567
    2/13/03 10:15 35678
    So I will track the position from day to day.If naybody helps, I appreciate it.Thanks.

    evolution wrote in message news:<[email protected]>...
    > How can I save my data and the date,the time into the same file when
    > I run this VI at different times?
    >
    > I use a translation stage for the experiment.For each user in the lab
    > the stage position (to start an experiment) is different.I defined one
    > end of the stage as zero. I want to save the position , date and time
    > of the stage with respect to zero.I want all these in one file, nd
    > everytime I run it it should save to the same file, like this:
    > 2/12/03 16:04 13567
    > 2/13/03 10:15 35678
    >
    > So I will track the position from day to day.If naybody helps, I
    > appreciate it.Thanks.
    Hi,
    I know the function "write to spreadsheet file.vi"
    can append the data
    to file. You can use the "concatenate strings" to display the date,
    time as well as data... Hope this help.
    Regards,
    celery

  • I am running my first backup on Time Machine using a Seagate external hard drive with a thunderbolt adapter and cable.  I have a MacBook Pro 2011. It is backing up 11GB, and is telling me it will take approx two days. Is this normal?

    I am running my first backup on Time Machine using a Seagate external hard drive with a thunderbolt adapter and cable.  I have a MacBook Pro 2011. It is backing up 11GB, and is telling me it will take approx two days. Is this normal?

    Download the supplemental fix to 10.7.5 
    http://support.apple.com/kb/DL1599

  • Hyper-V Only able to run one VM at a time

    Hi all,
    I have Hyper-V set up with about 3 VM's on Server 2012, but i can only seem to run one VM at a time.
    The server has the following:
    32GB Ram
    1TB HD with 425GB free
    When i have one of them started and running, it works just fine.
    As soon as i try to run a 2nd VM, i get the following error:
    "'PC1' failed to start.
    Microsoft Synthetic Mouse (Instance ID 58F75A6D-D949-4320-99E1-A2a2576D581c): Failed to Power on with Error 'The name limit for the local computer network adapter card was exceeded."
    I have tried to do the following:
    Disable all networking on each guest VM
    Removed DVD Drive
    Increase MAC range
    Set static MAC
    Changed boot order to put the CD to the bottom
    Disable the integration services from each VM
    Each VM has different netBIOS name
    Each VM has a different VHD and OS
    When starting the 2nd VM, it gets to about 10% and then shows the above error message.
    Is there anything anyone can suggest?
    Thanks

    Hi Skaliam,
    What is your VM's OS ?
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How to make two PCs (one local, one remote) control the same running vi at the same time?

    Hi Labviewers,
    I have a vi running, and two PCs are monitoring it, one is local and another one is remote.
    I can see the remote front panel at the remote machine by using application property node, but it seems only one of the two PCs has the control of the running VI at the same time.
    Is there any way to make the two PCs both have the control of the same vi at the same time?  Switching back and forth the control between two PCs is really annoying.
    Thanks a lot for any help.
    Anne

    What exactly are you trying to control?
    Perhaps another approach? You could use "Shared Variables" from LV 8.0 and have a copy of the writer VI on each of the control PCs edit the value on the host PC. But as soon as I post, someone is going to talk about multiple writers to shared resources being a bad idea.... so just be careful or you may try to edit a value that has already been changed.
    Matt Holt
    Certified LabVIEW Architect

  • BPC 10.0 NW - How do I make Business Rules run one Period at a time

    I was wondering if anyone has a way to make business rules run one period at a time before moving on to the next to the next time period (i.e. January 2014 calc prior to moving on to February 2014).  In past SQL this could be achieved with a piece of script *CALC_EACH_PERIOD.  Is there anything like this that can be applied in the NW platform for Business Rules?  I have some logic that I want to run through a package on multiple periods at once.  Part of this logic contains a Business Rule that uses a value from the preceding period.  the Business rule appears to be calculating all time periods selected in the package at once so it is missing the piece that is supposed to come from the prior month unless the package is run one period at a time.  I need the logic to run sequentially by time period (oldest first) when more than one time period is selected.
    thanks,
    Keith

    Hi Vadim,
    Script for the business rule is below, it runs along with the FX_Trans rule in the same package  ( I have also attached a screen shot of the actual Business rule its self)
    *RUN_PROGRAM CALC_ACCOUNT CATEGORY = %CATEGORY_SET% ENTITY = %ENTITY_SET% CURRENCY = USD //GROUPS = %GROUPS_SET% TID_RA = %TIME_SET% //OTHER = [AUDITTRAIL=%AUDITTRAIL_SET%] CALC = CALC_HIST_USD *ENDRUN_PROGRAM
    Thanks, Keith Carlson

  • While running the query how much time it will taken, I want to see the time

    Hi Folks
    I would like to know ... While running the query how much time it will be taken, I want to see the time? in WEBI XI R2.....
    Plz let me know  the answer.......

    Hi Ravi,
    The time a report runs is estimated based on the last time it was run. So you need to run the report once before you can see how long it will take. Also it depends on several factors... the database server could cache some queries so running it a second time immediately after the first time could be quicker. And there is the chance of changing filters to bring back different sets of data.
    You could also schedule a report and then check the scheduled instance's status properties and view how long a report actually ran.
    Good luck

  • Running admincm.cmd gives an error

    I loaded CM v13 on clean servers, i.e. didn't upgrade them. We now use MSSQL. I could run the demo databases and play with the system. All good.
    Then I converted our Sybase databases to MSSQL. Now when I run admincm.cmd I get and error. "Invalid object name 'ADMIN_CONFIG' After clicking OK I get 'Node has no children'.
    I suspect this is a conversion problem but have not been able to find anything on Primavera's knowledge base. Does any know what this means and how I may be able to solve it.
    Also, do we have an knowledge base on the Oracle website for Contract Management?
    Regards Rudi

    My best guess would be authentication error.
    Are logging to admincm.cmd with exp / sql? If so and it fails its strange that the CM is working for you (CM uses exp/sql user to acces database) unless you or someone have changed the defoult password for user exp.
    If you have access to MSSQL server directly (via Management studio) try to logon as user exp and check which tables you can see in EXPADMIN databases ... perhaps this will give you some idea.
    Oh and try resyncing the database user with server user by running query:
    use expadmin
    go
    exec sp_change_users_login 'Update_One', 'exp', 'exp'
    go
    Let us know what you find more

  • 24" iMac summer 2008. CPU fan runs at highest speed, some times goes to "sleep" mode. t' is about 35'- 42'C. Run hardware test: 4sns/1/40000000:tlop-130.000, next time 4sns/1/40000000:tlop-128.000 errors. Reinstalled all softwere. Nothing changed.

    24" iMac summer 2008. CPU fan runs at highest speed, some times goes to "sleep" mode. CPU t' is about 35'- 42'C. Run hardware test: 4sns/1/40000000:tlop-130.000, next time 4sns/1/40000000:tlop-128.000 errors. Tried SMC, NVRAM, PRAM. Reinstalled all softwere. Nothing changed.

    I suspect you have hardware problem with a fan sensor. Doing a software install will not help the machine needs to be taken in for service. If you run Apple Hardware Test in Extended Mode it should reveal the error code. If it does not then run AHT an additional 2-3 times to be sure in Extended Mode. Each pass will take about 30-60 minutes.

  • How to set the interval time in the   JFormattedTextField? Pls Contribute..

    Hi Frienz,
    Hi have a following code in which i want set the interval time for the TextField by 15 min
    So how it is possible please tell me out.
    DateFormatter frmtr = new DateFormatter();
                   SimpleDateFormat sdf = new SimpleDateFormat("HH:mm");
                   frmtr.setFormat(sdf);
                   frmtr.setAllowsInvalid(false);
                   DefaultFormatterFactory factory = new DefaultFormatterFactory(frmtr, frmtr, frmtr);
                   fmtToTime.setFormatterFactory(factory);

    AFAIK there is no easy (pure java) way: either you exec something (depending on your paltform) or use native code. Appropriate privileges will be necessary.

  • My macbook pro has been running slow for quite some time

    Hello, my MacBook Pro has been running slow for quite some time now and it's frustrating. I hope you'll be able to help me. I've read this thread and figured out I should open a new one, so here it is.
    I've already downloaded Etrechech and ran it and this is what I got:
    EtreCheck version: 2.0.6 (91)
    Report generated 22 Oct 2014 08:21:16 GMT+2
    Hardware Information: ℹ️
      MacBook Pro (13-inch, Late 2011) (Verified)
      MacBook Pro - model: MacBookPro8,1
      1 2.4 GHz Intel Core i5 CPU: 2-core
      4 GB RAM Upgradeable
      BANK 0/DIMM0
      2 GB DDR3 1333 MHz ok
      BANK 1/DIMM0
      2 GB DDR3 1333 MHz ok
      Bluetooth: Old - Handoff/Airdrop2 not supported
      Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
      Intel HD Graphics 3000 - VRAM: 384 MB
      Color LCD 1280 x 800
    System Software: ℹ️
      OS X 10.9.4 (13E28) - Uptime: 1:19:18
    Disk Information: ℹ️
      Hitachi HTS545050B9A302 disk0 : (500,11 GB)
      S.M.A.R.T. Status: Verified
      EFI (disk0s1) <not mounted> : 210 MB
      Macintosh HD (disk0s2) /  [Startup]: 499.25 GB (312.03 GB free)
      Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
      MATSHITADVD-R   UJ-8A8 
    USB Information: ℹ️
      Apple Inc. FaceTime HD Camera (Built-in)
      Apple Inc. Apple Internal Keyboard / Trackpad
      Apple Inc. BRCM2070 Hub
      Apple Inc. Bluetooth USB Host Controller
      Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ℹ️
      Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
      Mac App Store and identified developers
    Launch Agents: ℹ️
      [invalid?] com.genieo.engine.plist Support
      [loaded] com.google.keystone.agent.plist Support
      [loaded] com.hp.help.tocgenerator.plist Support
      [loaded] com.oracle.java.Java-Updater.plist Support
    Launch Daemons: ℹ️
      [loaded] com.adobe.fpsaud.plist Support
      [loaded] com.barebones.authd.plist Support
      [loaded] com.google.keystone.daemon.plist Support
      [loaded] com.microsoft.office.licensing.helper.plist Support
      [loaded] com.oracle.java.Helper-Tool.plist Support
    User Launch Agents: ℹ️
      [loaded] com.adobe.ARM.[...].plist Support
    User Login Items: ℹ️
      Garmin Express Service Application (/Applications/Garmin Express.app/Contents/Library/LoginItems/Garmin Express Service.app)
      Dropbox Application (/Applications/Dropbox.app)
      HPEventHandler UNKNOWN (missing value)
    Internet Plug-ins: ℹ️
      o1dbrowserplugin: Version: 5.4.2.18903 Support
      Unity Web Player: Version: UnityPlayer version 4.0.1f1 Support
      Default Browser: Version: 537 - SDK 10.9
      AdobePDFViewerNPAPI: Version: 10.1.3 Support
      FlashPlayer-10.6: Version: 15.0.0.152 - SDK 10.6 Support
      Silverlight: Version: 4.1.10329.0 Support
      Flash Player: Version: 15.0.0.152 - SDK 10.6 Mismatch! Adobe recommends 15.0.0.189
      QuickTime Plugin: Version: 7.7.3
      googletalkbrowserplugin: Version: 5.4.2.18903 Support
      SharePointBrowserPlugin: Version: 14.0.0 Support
      AdobePDFViewer: Version: 10.1.3 Support
      GarminGpsControl: Version: 4.1.0.0 Release - SDK 10.7 Support
      ViewRightWebPlayer: Version: 3.3.0.0 Support
      proXSignXML: Version: 1.2.21 - SDK 10.5 Support
      JavaAppletPlugin: Version: Java 7 Update 55 Check version
    User Internet Plug-ins: ℹ️
      OctoshapeWeb: Version: 1.0 - SDK 10.8 Support
      Picasa: Version: 1.0 Support
      Google Earth Web Plug-in: Version: 7.1 Support
    Safari Extensions: ℹ️
      AdBlock
    3rd Party Preference Panes: ℹ️
      Flash Player  Support
      Java  Support
      Spelling  Support
    Time Machine: ℹ️
      Skip System Files: NO
      Mobile backups: OFF
      Auto backup: NO - Auto backup turned off
      Volumes being backed up:
      Macintosh HD: Disk size: 499.25 GB Disk used: 187.22 GB
      Destinations:
      VERBATIM HD [Local]
      Total size: 999.86 GB
      Total number of backups: 0
      Oldest backup: 2012-10-07 19:12:45 +0000
      Last backup: 2012-10-07 19:12:45 +0000
      Size of backup disk: Adequate
      Backup size 999.86 GB > (Disk used 187.22 GB X 3)
    Top Processes by CPU: ℹ️
          14% Safari
          12% WindowServer
          4% coreaudiod
          3% com.apple.WebKit.Networking
          2% hidd
    Top Processes by Memory: ℹ️
      220 MB Safari
      43 MB WindowServer
      26 MB mds
      26 MB com.apple.WebKit.Networking
      26 MB Microsoft Word
    Virtual Memory Information: ℹ️
      21 MB Free RAM
      1.01 GB Active RAM
      992 MB Inactive RAM
      1.00 GB Wired RAM
      1.14 GB Page-ins
      49 MB Page-outs
    I hope you'll be able to help me.

    Right, sorry. I'm new at this stuff and I got confused. Here's the list:
    EtreCheck version: 2.0.6 (91)
    Report generated 22 Oct 2014 15:43:33 GMT+2
    Hardware Information: ℹ️
      MacBook Pro (13-inch, Late 2011) (Verified)
      MacBook Pro - model: MacBookPro8,1
      1 2.4 GHz Intel Core i5 CPU: 2-core
      4 GB RAM Upgradeable
      BANK 0/DIMM0
      2 GB DDR3 1333 MHz ok
      BANK 1/DIMM0
      2 GB DDR3 1333 MHz ok
      Bluetooth: Old - Handoff/Airdrop2 not supported
      Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
      Intel HD Graphics 3000 - VRAM: 384 MB
      Color LCD 1280 x 800
    System Software: ℹ️
      OS X 10.9.5 (13F34) - Uptime: 2:39:48
    Disk Information: ℹ️
      Hitachi HTS545050B9A302 disk0 : (500,11 GB)
      S.M.A.R.T. Status: Verified
      EFI (disk0s1) <not mounted> : 210 MB
      Macintosh HD (disk0s2) /  [Startup]: 499.25 GB (310.28 GB free)
      Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
      MATSHITADVD-R   UJ-8A8 
    USB Information: ℹ️
      Apple Computer, Inc. IR Receiver
      Apple Inc. FaceTime HD Camera (Built-in)
      Apple Inc. BRCM2070 Hub
      Apple Inc. Bluetooth USB Host Controller
      Apple Inc. Apple Internal Keyboard / Trackpad
    Thunderbolt Information: ℹ️
      Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
      Mac App Store and identified developers
    Launch Agents: ℹ️
      [loaded] com.google.keystone.agent.plist Support
      [loaded] com.oracle.java.Java-Updater.plist Support
    Launch Daemons: ℹ️
      [loaded] com.adobe.fpsaud.plist Support
      [loaded] com.barebones.authd.plist Support
      [loaded] com.google.keystone.daemon.plist Support
      [loaded] com.microsoft.office.licensing.helper.plist Support
      [loaded] com.oracle.java.Helper-Tool.plist Support
    User Launch Agents: ℹ️
      [loaded] com.adobe.ARM.[...].plist Support
    User Login Items: ℹ️
      HPEventHandler UNKNOWN (missing value)
    Internet Plug-ins: ℹ️
      o1dbrowserplugin: Version: 5.4.2.18903 Support
      Unity Web Player: Version: UnityPlayer version 4.0.1f1 Support
      Default Browser: Version: 537 - SDK 10.9
      AdobePDFViewerNPAPI: Version: 10.1.3 Support
      FlashPlayer-10.6: Version: 15.0.0.189 - SDK 10.6 Support
      Silverlight: Version: 4.1.10329.0 Support
      Flash Player: Version: 15.0.0.189 - SDK 10.6 Support
      QuickTime Plugin: Version: 7.7.3
      googletalkbrowserplugin: Version: 5.4.2.18903 Support
      SharePointBrowserPlugin: Version: 14.0.0 Support
      AdobePDFViewer: Version: 10.1.3 Support
      GarminGpsControl: Version: 4.1.0.0 Release - SDK 10.7 Support
      ViewRightWebPlayer: Version: 3.3.0.0 Support
      proXSignXML: Version: 1.2.21 - SDK 10.5 Support
      JavaAppletPlugin: Version: Java 7 Update 55 Check version
    User Internet Plug-ins: ℹ️
      OctoshapeWeb: Version: 1.0 - SDK 10.8 Support
      Picasa: Version: 1.0 Support
      Google Earth Web Plug-in: Version: 7.1 Support
    Safari Extensions: ℹ️
      AdBlock
    3rd Party Preference Panes: ℹ️
      Flash Player  Support
      Java  Support
      Spelling  Support
    Time Machine: ℹ️
      Skip System Files: NO
      Mobile backups: ON
      Auto backup: YES
      Volumes being backed up:
      Macintosh HD: Disk size: 499.25 GB Disk used: 188.97 GB
      Destinations:
      VERBATIM HD [Local]
      Total size: 999.86 GB
      Total number of backups: 2
      Oldest backup: 2012-10-07 19:12:45 +0000
      Last backup: 2012-10-07 19:12:45 +0000
      Size of backup disk: Adequate
      Backup size 999.86 GB > (Disk used 188.97 GB X 3)
    Top Processes by CPU: ℹ️
          5% Safari
          4% coreaudiod
          3% WindowServer
          1% hidd
          0% Microsoft Word
    Top Processes by Memory: ℹ️
      193 MB Safari
      26 MB WindowServer
      26 MB Skype
      21 MB PluginProcess
      21 MB mds
    Virtual Memory Information: ℹ️
      32 MB Free RAM
      852 MB Active RAM
      828 MB Inactive RAM
      1.02 GB Wired RAM
      2.15 GB Page-ins
      95 MB Page-outs

  • How to tune the interval time of keyRepeated

    Hi, I use keyRepeated to deal some keyboard events. But I want to adjust the frequency of keyRepeated event to be higher/the interval time to be smaller(the default is 100ms), how can I ? Thx

    Yes, it's a choice. If j2me can't provide it to u, so do it yourself! :-). Oh, If there is no way to do it surely, I 'll try this way. Thanks for your response.

  • Query running for a very long time

    Hi I have a sales Query which is running for a very long time,
    It is built on a multiprovider. The multiprovider gets feed from cube and DSO.
    It is taking very long time to run.
    I need to do some performance tuning can you please suggest.

    Hi Ravi,
    First maitain BW statistics for that query and after that go to se11 and give table RSDDSTAT. just check how many records selected in data base and how many records transferred.
    according to this statistics create aggregates by giving propose aggregates by using statistics tables. after running a query check in RSRT whether the data is coming from aggregates or not.
    do not exclude any selections try to include in query restrictions.
    try to create secondary indexes.
    let us know the result.

  • New user can not run ping from shell

    Hello,
    I am an extreme novice, but I have been able to install Solaris 10 on a SunBlade 100 and have created a second user. I want to be able to telnet or ssh to my system as the second user and then run pings and traceroutes from there to other network devices.
    If I remote log in as root I get a # prompt and can run ping. If I remote log in as the second user I get a $ prompt even though the group [0], base directoty [], and shell [sbin/sh] are identical to root in the /etc/passwd file. If I try to run ping I get: ping: not found.
    What do I need to configure for the second user so that the login receives the # prompt and is able to run pings?
    Thanks,
    Greg

    I'm missing something. I want to create a user that is equal to the root. The root has # prompt and can run ping with no extra work. What do I need to do to my second user to get access to the # prompt and the ability to just type and run ping ?Oohhhhhhhhhh, root has that other prompt and his PATH statement is setup properly and mine isn't so I need to be him instead of fixing the user account.
    You can set any users prompt to anything you want. You can make root's prompt a dollar sign instead if you want to and you can set an ordinary users prompt to the # symbol so what does that prove?
    All you need to do is to fix the PATH statement in ~/.profile for bash or sh and the user no longer needs to type the full path or use ./ to run a command.
    You have a lot to learn.
    alan

Maybe you are looking for

  • Image not printing in Layout Editor

    I am using BI Publisher 11.1.1.6. I tried inserting an image in Layout Editor to display company logo. Followed the steps below. 1. Click on Image icon in Layout editor. 2. Select 'Field' Radio button, in the image URL: selected the field LOGO which

  • PDF visibility issue in Firefox and Safari on Windows

    Hi Guys, I am using iframe to embed pdf in html:- <iframe visible="true" id="ipdf" src="pdf/filename.pdf" height="600" width="665" runat="server" frameborder="0" scrolling="auto" allowtransparency="true"> </iframe> My problem is in some browsers it a

  • Custom MDM Scenario - Level of Effort

    Gi All, Has anybody cretaed any custom repositories in MDM. Our company needs to maintain Financial Master data Objects( G/L Account Master,Bank Master, Exchange  rates etc)  through MDM primarily. I would like to give the best best possible estimate

  • Importing XML destroys tables formatting

    Hi! I have an xml file containing my document translated into another language. When I import this into my Indesign CS4 document, the info in the tables, although it is imported correctly, removes my alternating row fills. I have checked the origin x

  • [WHLK] The error message pops up while installing WHLK build 10022/10031 on Server 2012

    Hi all, There is no error message on WHLK build #9926. But the error message pops up on installing build 10022/10031. Did you get the same problem while installing WHLK build 10022/10031? Here is the s=installion step: Launch "HLKSetup.exe" on Server