Old 21st April 2014, 23:03   #1
toqer
Winamp's Little Stalker
(Member)
 
Join Date: Mar 2004
Location: under a bridge
Posts: 796
NSIS icmp test?

Does anyone know if there's an ICMP/Ping plugin for nsis, just to see if a host is up and talking?
toqer is offline   Reply With Quote
Old 21st April 2014, 23:25   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,175
If there is a web server on this host you could issue a head request with the inetc plugin...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 21st April 2014, 23:31   #3
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Of course you could just call the "ping.exe" program.

Also you could use the InternetCheckConnection function, e.g. via System plug-in.

[EDIT] Or maybe the IcmpSendEcho function [/EDIT]

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Old 21st April 2014, 23:54   #4
toqer
Winamp's Little Stalker
(Member)
 
Join Date: Mar 2004
Location: under a bridge
Posts: 796
Ya I looked at that today, unfortunately most of these hosts aren't running a webserver (just a lot of jboss servers)

Maybe I could just comspec exec ping hostname
Then look for "Host Unknown" ?
toqer is offline   Reply With Quote
Old 22nd April 2014, 00:25   #5
toqer
Winamp's Little Stalker
(Member)
 
Join Date: Mar 2004
Location: under a bridge
Posts: 796
Mulder: Looks like the right way to go but my mind is boggled just looking at it. Any chance you could make an example?
toqer is offline   Reply With Quote
Old 22nd April 2014, 00:56   #6
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Quote:
Originally Posted by toqer View Post
Mulder: Looks like the right way to go but my mind is boggled just looking at it. Any chance you could make an example?
I've never been great in fiddling with the System plug-in's syntax

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Old 22nd April 2014, 10:14   #7
jpderuiter
Major Dude
 
Join Date: Feb 2007
Posts: 672
http://forums.winamp.com/showthread.php?t=375482
jpderuiter is offline   Reply With Quote
Old 22nd April 2014, 18:58   #8
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Quote:
Originally Posted by jpderuiter View Post
Déjà vu

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump