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.
-
-W0kk3L-
- Voice
- Posts: 24
- Joined: Sun Feb 23, 2003 7:23 pm
Post
by -W0kk3L- »
Hey, i'm new to tcl, so this is probably a newbiequestion
I have a variable containing an IP. I want to convert this IP to a hostname by a dnslookup. How do i do this in tcl? (without using shell)
-
demond
- Revered One
- Posts: 3073
- Joined: Sat Jun 12, 2004 9:58 am
- Location: San Francisco, CA
-
Contact:
Post
by demond »
Code: Select all
proc myproc {ip host status} {
if $status {
putlog "$ip = $host"
} else {
putlog "couldn't resolve $ip"
}
}
dnslookup $ip myproc
-
-W0kk3L-
- Voice
- Posts: 24
- Joined: Sun Feb 23, 2003 7:23 pm
Post
by -W0kk3L- »
Thank you
Lets try and use this ;b