PDA

View Full Version : [TCL] %[$flags] cookie no work


deo
03-03-2005, 09:51 PM
nope

thing = TCL ..\scripts\thing.itcl %[$flags]

get nothing passed

neoxed
03-03-2005, 09:52 PM
thing = %TCL ..\scripts\thing.itcl %[$flags]

deo
03-04-2005, 07:56 AM
how true... late night :(

but in my ini %TCL is used,

maybe its just a PRE_ event problem (using on PRE_ user)

?

Mouton
03-04-2005, 09:55 AM
WORKFORME


[FTP_Pre-Command_Events]
cwd = %TCL ..\scripts\test.itcl %[$flags]


#test.itcl

if { [info exists args] } {
iputs -nobuffer "Arguments: $args"
}
set ioerror 0


[09:54:49] [L] CWD home
[09:54:49] [L] Arguments: 1MTH CWD home
[09:54:49] [L] 250 CWD command successful.

deo
03-04-2005, 10:39 AM
wtf is the CAPS FOR?

like where did i put CWD?

it says PRE_ 'user'

Mouton
03-04-2005, 11:21 AM
WORKFORME is a standard Bugzilla resolution status for bugs.

PRE_ 'user' means nothing to me. I thought by PRE_ you meant an event you added in FTP_Pre-Command_Events, thus the example I took some of my time to do for you.

deo
03-04-2005, 11:36 AM
[FTP_Pre-Command_Events]
user = %TCL ..\scripts\user.itcl %[$user] %[$flags]

Mouton
03-04-2005, 11:42 AM
So... let me get this straight...
*Before* the user logs in, you want io to give you it's flags..?

Maybe it's not obvious to you, but the user-related environment variables, like $user and $flags, are only set *after* the user logs in successfully... ie you won't be able to get those environment variables before FTP_Post-Command_Events for "pass".

That's not a bug, but per design (moved to proper forum).

deo
03-04-2005, 11:43 AM
it started ok this thread, now it seems you are angry.

i leave you alone now..