#16771 - 2002-01-29 01:25 AM
Re: To Shell or not to Shell?
|
Anonymous
Anonymous
Unregistered
|
Here's how to do itUse the function the link points to to pull back the IP address : $ping=Ping(%clientname%,1) Then you can use the SPLIT command in kix 4.x to split the IP address up into octets and grab the one you want. As Jpols says, it does not work on win9x though....
|
|
Top
|
|
|
|
#16772 - 2002-01-29 05:32 PM
Re: To Shell or not to Shell?
|
Austin
Seasoned Scripter
Registered: 2002-01-24
Posts: 439
|
Hey now we are talking.. can you expand on that thought for me.. or maybe point me towards some information that I can make this method work? This looks promising to me.
_________________________
Austin Henderson
|
|
Top
|
|
|
|
#16773 - 2002-01-29 05:34 PM
Re: To Shell or not to Shell?
|
Austin
Seasoned Scripter
Registered: 2002-01-24
Posts: 439
|
$ping=Ping(%clientname%,1) $octetarray=split("@ipaddress0",".") $location=val($octetarray[1]) goto tsprtmapHow does this look... if I am after X in A.X.A.X
_________________________
Austin Henderson
|
|
Top
|
|
|
|
#16774 - 2002-01-29 05:36 PM
Re: To Shell or not to Shell?
|
Austin
Seasoned Scripter
Registered: 2002-01-24
Posts: 439
|
oops.. make that A.X.A.ASorry guys.. little typo there
_________________________
Austin Henderson
|
|
Top
|
|
|
|
#16775 - 2002-01-29 05:39 PM
Re: To Shell or not to Shell?
|
Austin
Seasoned Scripter
Registered: 2002-01-24
Posts: 439
|
I am getting an unexpected expression.. is ping a valid function?
_________________________
Austin Henderson
|
|
Top
|
|
|
|
#16778 - 2002-01-29 06:01 PM
Re: To Shell or not to Shell?
|
Austin
Seasoned Scripter
Registered: 2002-01-24
Posts: 439
|
I see the link to the ping function put I do not know how to inlude that function can anyone advise?
_________________________
Austin Henderson
|
|
Top
|
|
|
|
#16779 - 2002-01-29 06:37 PM
Re: To Shell or not to Shell?
|
Austin
Seasoned Scripter
Registered: 2002-01-24
Posts: 439
|
I have it..!! Thank you all for your primo support here... You stated that it uses a tmp file.. can you expand on that.. I am very new to kix Thanks
_________________________
Austin Henderson
|
|
Top
|
|
|
|
#16780 - 2002-01-29 06:46 PM
Re: To Shell or not to Shell?
|
Austin
Seasoned Scripter
Registered: 2002-01-24
Posts: 439
|
correction it's$ping=Ping(%clientname%,1) $octetarray=split("$ping",".") $location=val($octetarray[1]) goto tsprtmap Thanks
_________________________
Austin Henderson
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 565 anonymous users online.
|
|
|