View Full Version : %execute[%EXEC ... ] broken?
mr_F_2
09-05-2004, 05:20 PM
I added the following to my UserInfo file in \text\ftp :
| Last seen: %[execute(%EXEC ..\scripts\ioSeen\ioSeen.exe)(v %[$user])] |
executing it manually yields:
C:\ioFTPD\scripts>ioSeen\ioSeen.exe v a_users_name
on Sun Sep 05, 2004 at 17:04:02
it doesn't like the %[$user] so it outputs this:
[L] 200-| Last seen: )] |
could this be fixed?
Mouton
09-05-2004, 11:59 PM
Don't think it's broken. I doubt u can use a cookie inside a super-cookie! Not seen anywhere where such a possibility would have been documented or discussed anyway.
Get the value(s) u want from environment variable(s).
mr_F_2
09-06-2004, 01:11 AM
i dont think i can get it from environmental variables, because that'd give me the logged in user's username, or the user issuing the command when it's the user i'm doing the <i>site uinfo</i> on that i want to pass to the application.
You could try to add uinfo = EXEC ..\scripts\ioSeen\ioSeen.exe v to the FTP_Custom_Commands. This way it should be called with the username as its 2nd parameter right before the internal @uinfo is called (or right after, i'm not sure).
If I remember correctly you can't include cookies in super-cookies to avoid infinite loops.
mr_F_2
09-06-2004, 01:55 AM
Originally posted by Harm
You could try to add uinfo = EXEC ..\scripts\ioSeen\ioSeen.exe v to the FTP_Custom_Commands. This way it should be called with the username as its 2nd parameter right before the internal @uinfo is called (or right after, i'm not sure).
If I remember correctly you can't include cookies in super-cookies to avoid infinite loops.
I could do that, but there should be able to do what I would like it to do here, it seems like such a drawback (though not a serious one) to not be able to use this the way i'd like to.
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2024, vBulletin Solutions, Inc.