Go Back   FlashFXP Forums > Community Chatter > Programming

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

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

nope

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

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

thing = %TCL ..\scripts\thing.itcl %[$flags]
neoxed is offline  
Old 03-04-2005, 06:56 AM   #3
deo
Banned
 
Join Date: Feb 2005
Posts: 53
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, 08:55 AM   #4
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 2,022
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, 09:39 AM   #5
deo
Banned
 
Join Date: Feb 2005
Posts: 53
Default

wtf is the CAPS FOR?

like where did i put CWD?

it says PRE_ 'user'
deo is offline  
Old 03-04-2005, 10:21 AM   #6
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 2,022
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, 10:36 AM   #7
deo
Banned
 
Join Date: Feb 2005
Posts: 53
Default

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

deo is offline  
Old 03-04-2005, 10:42 AM   #8
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 2,022
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, 10:43 AM   #9
deo
Banned
 
Join Date: Feb 2005
Posts: 53
Default

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

i leave you alone now..
deo is offline  
Closed Thread
Create a free account to browse our forums without ads



Thread Tools
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 12:59 PM.