View Single Post
Old 11-22-2003, 05:44 PM  
Mouton
Posse Member
 
Join Date: Dec 2002
Posts: 1,956
Default double [Pre] scripts - only last one is executed...

How to reproduce:

- get 5.3.0 full package

- replace .exe by 5.3.8

- change admin.vfs to something valid

- edit ioFTPD.ini [Pre]:
mkd = TCL ..\scripts\test.itcl 123
mkd = TCL ..\scripts\test.itcl 456
retr = EXEC ..\scripts\test.bat 123

- put test.itcl in ..\scripts:

Code:
iputs "test $args"
return 0
- start ioftpd.exe

- login

[17:34:05] [L] MKD test
[17:34:05] [L] test 456 MKD test
[17:34:05] [L] 257 "test" created.

- change ioftpd.ini [Pre]:
mkd = TCL ..\scripts\test.itcl 123
mkd = TCL ..\scripts\test.itcl 456
;retr = EXEC ..\scripts\test.bat 123

- site config rehash

[17:36:50] [L] MKD test
[17:36:50] [L] test 123 MKD test
[17:36:50] [L] test 456 MKD test
[17:36:50] [L] 257 "test" created.

- edit ioftpd.ini [Pre]:
[Pre]
mkd = TCL ..\scripts\test.itcl 123
mkd = TCL ..\scripts\test.itcl 456
mkd = TCL ..\scripts\test.itcl 789

- site config rehash

[17:46:23] [L] MKD test
[17:46:23] [L] test 456 MKD test
[17:46:23] [L] test 789 MKD test
[17:46:23] [L] 257 "test" created.

- edit ioftpd.ini [Pre]:
[Pre]
mkd = TCL ..\scripts\test.itcl 123
mkd = TCL ..\scripts\test.itcl 456
mkd = TCL ..\scripts\test.itcl 789
mkd = TCL ..\scripts\test.itcl 101112
mkd = TCL ..\scripts\test.itcl 123

- site config rehash

[17:48:19] [L] MKD test
[17:48:19] [L] test 789 MKD test
[17:48:19] [L] test 101112 MKD test
[17:48:19] [L] test 123 MKD test
[17:48:19] [L] 257 "test" created.

and so on and so on...same behavior if test.bat (echo test %1) is used instead of test.itcl
Mouton is offline   Reply With Quote