| View previous topic :: View next topic |
| Author |
Message |
rileyil77 Voice

Joined: 10 Sep 2005 Posts: 22 Location: Hamilton, AL
|
Posted: Fri Feb 06, 2009 10:18 am Post subject: pub_nslookup 2.1 |
|
|
pub_nslookup 2.1 TCL doesn't work with WinDrop... When I do the command:
!dns someisp.com
The Party Line comes back and says:
Tcl error [pub_nslookup]: couldn't create error file for command: no such file or directory.
I found the NSLOOKUP.EXE under WinXP Professional was in c:\windows\system32
I edited the path in script to c:\windows\system32 and got the same error... Is there a fix or TCL script for WinDrops that do the samething as pub_nslookup 2.1? Thanks in advanced. If you need more information just let me know. _________________ John Riley
SLASHER BBS ProBoard V2.17 telnet://slasherbbs.com
or look me on Internet Radio!
http://slasherbbs.com |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Fri Feb 06, 2009 11:34 am Post subject: |
|
|
This can be done without the use of nslookup, using eggdrop's built in dnslookup command. My Example would be something like this: | Code: | bind pub o|o !host host:pub
proc host:pub {nick host handle channel text} {
global host
set addy [lindex [split $text] 0]
set host "$channel"
dnslookup $addy host:display
return
}
proc host:display {ipaddress hostname status} {
global host
if {($ipaddress == "") || ([string match "0.*" "$ipaddress"])} {
puthelp "PRIVMSG $host :Unable to resolve $hostname"
return
} else {
puthelp "PRIVMSG $host :\002$hostname\002 has the IP Address \002$ipaddress\002"
return
}
}
set host "" |
_________________ TCL the misunderstood |
|
| Back to top |
|
 |
rileyil77 Voice

Joined: 10 Sep 2005 Posts: 22 Location: Hamilton, AL
|
Posted: Sun Jun 05, 2011 6:19 pm Post subject: |
|
|
Sorry, I didn't even remember writing this post. Is this a TCL script, TCL_no_TK? If so, cool, I'll copy it into a TCL, if not I guess it would go into the bots config file right? _________________ John Riley
SLASHER BBS ProBoard V2.17 telnet://slasherbbs.com
or look me on Internet Radio!
http://slasherbbs.com |
|
| Back to top |
|
 |
uffs Voice
Joined: 17 Apr 2008 Posts: 14 Location: 6°10.5S-106°49.7E
|
Posted: Wed Jun 15, 2011 11:21 am Post subject: |
|
|
wow, after 2 years  |
|
| Back to top |
|
 |
|