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.
Help for those learning Tcl or writing their own scripts.
-
tessa1
- Halfop
- Posts: 49
- Joined: Mon Apr 18, 2005 12:51 pm
- Location: Germany
Post
by tessa1 »
Hi,
how to split Hostname[IP] in two variables?
I think string trimright, but dunno how to use.
*** Global -- from anystupidnet.com: Server hub.anystupidnet.com[123.456.789.0] closed the connection
Code: Select all
bind raw - NOTICE hubsplit_snotc
proc hubsplit_snotc {from keyword text} {
set variable_all "[lindex [split $text] 6]"
set variable_hostname "......"
set variable_IP "......"
...
Regards tessa
Last edited by
tessa1 on Thu Aug 31, 2006 11:31 pm, edited 1 time in total.
-
demond
- Revered One
- Posts: 3073
- Joined: Sat Jun 12, 2004 9:58 am
- Location: San Francisco, CA
-
Contact:
Post
by demond »
Code: Select all
set hostip [lindex [split $text] 6]
scan $hostip {%[^[][%[^]]} host ip
connection, sharing, dcc problems? click
<here>
before asking for scripting help, read
<this>
use
-
tessa1
- Halfop
- Posts: 49
- Joined: Mon Apr 18, 2005 12:51 pm
- Location: Germany
Post
by tessa1 »
thats the way
Thx