Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 03-03-2005, 09:51 PM   #1
deo
Banned
 
Join Date: Feb 2005
Posts: 46
Default [TCL] %[$flags] cookie no work

nope

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

get nothing passed
deo is offline  
Old 03-03-2005, 09:52 PM   #2
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

thing = %TCL ..\scripts\thing.itcl %[$flags]
neoxed is offline  
Old 03-04-2005, 07:56 AM   #3
deo
Banned
 
Join Date: Feb 2005
Posts: 46
Default

how true... late night

but in my ini %TCL is used,

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

?
deo is offline  
Old 03-04-2005, 09:55 AM   #4
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

WORKFORME

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

if { [info exists args] } {
	iputs -nobuffer "Arguments: $args"
}
set ioerror 0
Code:
[09:54:49] [L] CWD home
[09:54:49] [L] Arguments: 1MTH CWD home
[09:54:49] [L] 250 CWD command successful.
Mouton is offline  
Old 03-04-2005, 10:39 AM   #5
deo
Banned
 
Join Date: Feb 2005
Posts: 46
Default

wtf is the CAPS FOR?

like where did i put CWD?

it says PRE_ 'user'
deo is offline  
Old 03-04-2005, 11:21 AM   #6
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

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.
Mouton is offline  
Old 03-04-2005, 11:36 AM   #7
deo
Banned
 
Join Date: Feb 2005
Posts: 46
Default

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

deo is offline  
Old 03-04-2005, 11:42 AM   #8
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

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).
Mouton is offline  
Old 03-04-2005, 11:43 AM   #9
deo
Banned
 
Join Date: Feb 2005
Posts: 46
Default

it started ok this thread, now it seems you are angry.

i leave you alone now..
deo is offline  
Closed Thread

Tags
%[$flags], passed, scriptsthing.itcl, tcl, thing

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:28 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)