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.

is this correct?

Help for those learning Tcl or writing their own scripts.
Post Reply
h
honeybee
Halfop
Posts: 80
Joined: Sun Jan 01, 2006 12:42 pm

is this correct?

Post by honeybee »

I'm trying to get the ident in this fashion *!*ident@* to check something, assuming identd is installed, so i m doing it with
set checkid "*!*[lindex [split [lindex [split $uhost @] 0] 1]]@*"
, any better solution?
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

that won't even work.

[lindex [split $uhost @] 0] is enough for the ident.

using another [lindex [split 1]] (you didn't even use an index with that lindex so it would generate an error anyway is pointless.
h
honeybee
Halfop
Posts: 80
Joined: Sun Jan 01, 2006 12:42 pm

Post by honeybee »

MeTroiD wrote:
that won't even work.

[lindex [split $uhost @] 0] is enough for the ident.

using another [lindex [split 1]] (you didn't even use an index with that lindex so it would generate an error anyway is pointless.
thats working perfect, anyway thanks for the suggestion i would like to hear from demond, sky de_kuss and Sir_Fz. thanks.
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

then use private messaging :roll: .

This is a public forum and if you only want answers from them, i would advise you to use private messages.
It's fairly obnoxious to make a topic and then when you're being helped with a piece of scripting that doesn't and won't ever work correctly you ask that only certain people respond.
h
honeybee
Halfop
Posts: 80
Joined: Sun Jan 01, 2006 12:42 pm

Post by honeybee »

metroid wrote:
then use private messaging .

This is a public forum and if you only want answers from them, i would advise you to use private messages.
It's fairly obnoxious to make a topic and then when you're being helped with a piece of scripting that doesn't and won't ever work correctly you ask that only certain people respond.
I didnt mean that, just said cause they are one of the most active people along with you :-)
Post Reply