karl_Pacey
asked on
Keep alive connection
I need to make a small program, that will send a ping to a server once every 5 minutes or so , so it will keep a connection alive.
We run a pronto SCO server and users on a remote connection are getting lockups if they leave the console inactive for more then 10 minutes.
I need the program to start when windows starts and issue two 32 byte pings once every 5 minutes.
I am presuming this will help with the lockups, unless anyone knows of a better way to achieve this.
Can this be done easily in javascript?
Regards
We run a pronto SCO server and users on a remote connection are getting lockups if they leave the console inactive for more then 10 minutes.
I need the program to start when windows starts and issue two 32 byte pings once every 5 minutes.
I am presuming this will help with the lockups, unless anyone knows of a better way to achieve this.
Can this be done easily in javascript?
Regards
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Runs like a charm, however is there anyway to surpress the command prompt opening on top of other applications each time the script runs. ie: i can't see an option to hide the command prompt
hi karl_Pacey,
I don't know how, but I thought for another script, you don't need a ping, but "Keep alive connection"...
===========pong.vbs======= ========
theURL = "http://www.sembel.net"
Set objHTTP = CreateObject("MSXML2.Serve rXMLHTTP")
objHTTP.SetTimeouts 1000, 1000, 1000, 1000
objHTTP.open "GET", theURL, false
objHTTP.send
'msgBox objHTTP.responseText
Set objHTTP = Nothing
I don't know how, but I thought for another script, you don't need a ping, but "Keep alive connection"...
===========pong.vbs=======
theURL = "http://www.sembel.net"
Set objHTTP = CreateObject("MSXML2.Serve
objHTTP.SetTimeouts 1000, 1000, 1000, 1000
objHTTP.open "GET", theURL, false
objHTTP.send
'msgBox objHTTP.responseText
Set objHTTP = Nothing
then your heartbeat function would look something like this
function HeartBeat( )
{
// I have no idea how to ping the server, so this may not help
// Call this function again in 5 minutes
setTimeout( "HeartBeat( )", 5000 )
}