This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
-
a
abn0rmal
Post
by abn0rmal »
i need help, actually, a code to ping ip and get a result...
-
ppslim
- Revered One
- Posts: 3914
- Joined: Sun Sep 23, 2001 8:00 pm
- Location: Liverpool, England
Post
by ppslim »
This is not possible in native Tcl.
You can download packages that will give you the ability to do ICMP and more socket functions.
However, another method using [exec] and some input parsing, would do the trick.
-
a
abn0rmal
Post
by abn0rmal »
thx...
i do [exec ping "some host"]
how do i get results ? (not like "putlog" if i do eval...)
-
a
abn0rmal
Post
by abn0rmal »
heeelp ;(
-
ppslim
- Revered One
- Posts: 3914
- Joined: Sun Sep 23, 2001 8:00 pm
- Location: Liverpool, England
Post
by ppslim »
I do not have access to a system, that allows me to ping.
I do not exactly have a proper test system either.
SO I am unable to provide any code at this time.
And there is a little thing called patients.
You could allways try it yourself.
One thing to definatly look at is to "set a [exec ping host.name]"
Then look through it, using the foreach and split commands (split is at \n).