Page 1 of 1 1
Topic Options
#173234 - 2007-01-26 11:11 AM Ping
Kixfan Offline
Fresh Scripter

Registered: 2004-03-18
Posts: 17
Hi,

I would like to ping two ip addresses

if both are online process to execute something else either one or both is/are offline exit.

Top
#173235 - 2007-01-26 11:14 AM Re: Ping [Re: Kixfan]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
As this is the Scripts forum, can you show us some script?
Top
#173238 - 2007-01-26 11:16 AM Re: Ping [Re: Witto]
Kixfan Offline
Fresh Scripter

Registered: 2004-03-18
Posts: 17
Perhaps I should post in General Discussions. Sorry!
Top
#173240 - 2007-01-26 11:18 AM Re: Ping [Re: Kixfan]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
No, Starters
Top
#173245 - 2007-01-26 11:45 AM Re: Ping [Re: Witto]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Ah, now it is in Starters.
Like I said in your "General Discussions" question:
Look in the UDF forum for PING(), OSPING(), REVPING() or WMIPING()
I think one of these can help you
p.e. (I did not test this)
Code:
If NOT @LOGONMODE
	Break On
Else
	Break Off
EndIf
Dim $RC
$RC=SetOption("Explicit", "On")
$RC=SetOption("NoMacrosInStrings", "On")
$RC=SetOption("NoVarsInStrings", "On")
$RC=SetOption("WrapAtEOL", "On")

If OSPing("192.168.1.1") AND OSPing("192.168.1.2")
	;Do stuff
EndIf

Do not forget p.e. to copy the OSPing code at the end of your script.

Top
#173368 - 2007-01-29 09:08 PM Re: Ping [Re: Witto]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
test
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#173370 - 2007-01-29 09:14 PM Re: Ping [Re: Benny69]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11628
Loc: CA
Test, is this post remaining as unread for others? Benny continues to see this posting as unread even after cookie deletion and cache deletion.
Top
#173372 - 2007-01-29 09:32 PM Re: Ping [Re: NTDOC]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Originally Posted By: NTDOC
Test, is this post remaining as unread for others?
....


Nope it doesn't. Once opened it shows as read until new posts get placed.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#173376 - 2007-01-29 10:00 PM Re: Ping [Re: Mart]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11628
Loc: CA
Thanks Mart,

Apparently it is the other one in the Scripts forum that Jooel locked. I'll work more with Benny on it.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 1172 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.147 seconds in which 0.074 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org