Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 18

Thread: Silent Ping

  1. #1
    Join Date
    Feb 2006
    Posts
    346

    Silent Ping

    Hello,

    Need some help! We have a private data line that runs from NJ to FL. We have a main server in NJ and are FL users connect throught via the PDL. A few time a year the PDL drops and is down for hours. Since this is a customer service database we cannot have a long down time.

    So my question - Is it possible to make an app run in the taskbar and ping an IP address, say every 10 minutes and if it fails to ping the address then do this (file.open etc)? Is it also possible to have the ping semi silent - Not show a dos box maybe just show on the taskbar?

    Any suggestion would be great... Thanks!

  2. #2
    Join Date
    Apr 2009
    Posts
    277
    run "HTTP.TestConnection" from a timer

    Code:
    if HTTP.TestConnection("your.server.url") then
      -- server is live
      
    else
      -- could not connect so check the pc has a connection
      if HTTP.GetConnectionState() then
        -- server is offline
      
      else
        -- pc is offline
      
      end
    end

  3. #3
    Join Date
    Feb 2006
    Posts
    346
    That works great - Thanks

  4. #4
    Join Date
    Jul 2007
    Posts
    1,512
    if you make it and want it to have a nice GUI then remove your server addy and then post it and i give it a shot for a nice GUI as i like doing this for people.

  5. #5
    Join Date
    Jul 2007
    Posts
    1,512
    There is problem with the if the url is not there its not listening to any timeout
    there for it takes what ever time it likes to see if there is no site what i think
    this is a bad this as i have tested this many times its anything from 12 to 30 sec
    and this in real time is 2 look for a custamer or end user to be waiting for the reply.

  6. #6
    Join Date
    Apr 2009
    Posts
    277
    i agree "HTTP.TestConnection" is slow in its return and is not really ideal for a ping test but from AMS without winsock support its the easyest way, the OP wants a single app to reside in the system tray to check a single server and be notified of downtime at a max delay of 10 mins, for this task the above code is perfect as the application has no other use

    for a application that has many uses and GUI, sure it will appear to lock up

    That works great - Thanks
    np

  7. #7
    Join Date
    Jul 2007
    Posts
    1,512
    From testing it does lock up for a few sec and this is a downfall but it would still be able to have a nice GUI just restore program when its no longer locked up.

    Or don't return anything if its not live set it already offline and if its online change status so no real lockup would be seen by the end user.

    maybe?

  8. #8
    Join Date
    Apr 2009
    Posts
    277
    personaly speaking, i wouldent use AMS for such a project as it really should be a threaded application, it will also lock up the system tray icon and any lock up in a app is not really good

    but its easy to get around, simply change the system tray icon to a "Busy" icon so the user is aware the the app is doing something, and the GUI just set the mouse cursor over the app window to a hourglass, this is enough visual feedback to assure the user the app hasent crashed.

  9. #9
    Join Date
    Feb 2006
    Posts
    346
    The project seems to lockup for about 10 seconds. My end user will not notice, I have it running minimized on startup - Most users have no clue that it's even running.

    What I have the app do is - if the PDL goes down it then creates a desktop shourtcut for RDC. This will allow the user an alternate route using the local internet connection to get to the database. Once the PDL is back up, it removes RDC Shortcut. We run Novell ZEN and have the desktop locked down. We removed most of the start menu options to include programs. This simple app works well. Of course, if there is a better way to do it, I 'm always willing to learn! Thanks

  10. #10
    Join Date
    Jul 2007
    Posts
    1,512
    Quote Originally Posted by abnrange View Post
    The project seems to lockup for about 10 seconds. My end user will not notice, I have it running minimized on startup - Most users have no clue that it's even running.

    What I have the app do is - if the PDL goes down it then creates a desktop shourtcut for RDC. This will allow the user an alternate route using the local internet connection to get to the database. Once the PDL is back up, it removes RDC Shortcut. We run Novell ZEN and have the desktop locked down. We removed most of the start menu options to include programs. This simple app works well. Of course, if there is a better way to do it, I 'm always willing to learn! Thanks
    well i tested itg and it worked just locked up now and then if offline and thats what i was thinking just hide it

  11. #11
    Join Date
    Feb 2006
    Posts
    346
    rexzooly - I have a project I 'm working on and need help with the GUI. Can you assist - I will pay!

  12. #12
    Join Date
    Jul 2007
    Posts
    1,512
    I have PM'ed you my addy i will be happy to help

  13. #13
    Join Date
    Aug 2007
    Location
    Leon, Mexico.
    Posts
    406

    Same Here Rex i will pay if u can do something for me

    Hope u can spare a few time to my project, hope u do really...

    Thanks...

  14. #14
    Join Date
    Jul 2007
    Posts
    1,512
    Quote Originally Posted by DaSoulRed View Post
    Hope u can spare a few time to my project, hope u do really...

    Thanks...
    Please stop posting on eveyones post, someone might help if they can.

  15. #15
    Join Date
    Aug 2004
    Location
    Somewhere in Texas, USA
    Posts
    417
    @DaSoulRed

    You should stop posting your problems in other peoples threads.

    Highjacking other peoples threads is RUDE.

    You are getting OUT OF CONTROL.
    Last edited by mwreyf1; 04-29-2009 at 09:21 PM.

Similar Threads

  1. Silent / unattended install
    By tkroeckel in forum Setup Factory 7.0
    Replies: 6
    Last Post: 01-21-2009, 08:49 AM
  2. Example: iPing - Ping a site
    By ThomasAnderson in forum AutoPlay Media Studio 7.5 Examples
    Replies: 0
    Last Post: 10-02-2008, 09:38 AM
  3. Replies: 5
    Last Post: 03-05-2008, 10:54 AM
  4. Overwriting Silent Mode
    By Bishal in forum Setup Factory 6.0
    Replies: 2
    Last Post: 10-14-2003, 06:02 PM
  5. HOWTO: Create a Silent Install with Setup Factory 5.0
    By Support in forum Setup Factory 5.0
    Replies: 0
    Last Post: 10-08-2002, 02:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts