Page 1 of 1

how to get "The FTP client name" and use string manipulation

Posted: Mon Aug 26, 2013 4:42 pm
by kirikou
Hello everybody,

i have two questions
first one:
I want to get the "The FTP client name" but "%ClientVersion" server variable doesn't !!!

second one:
I have a string like this: " XXXXXX_XXXXXXX " and I want to obtain substring before "_", and i want also to get the substring after "_"
How could I do for those two topics?

Thanks you for your future response,

Re: how to get "The FTP client name" and use string manipula

Posted: Tue Aug 27, 2013 5:21 pm
by FTP
1. Not all the events can get "%ClientVersion", such as "OnUserLoggedIn", because client does not send the command "CLNT xxx" when the event is triggered.

2. You can use the string library, please have a look on the Lua help manual:
http://www.lua.org/manual/5.2/manual.html#6.4" rel="nofollow

Re: how to get "The FTP client name" and use string manipula

Posted: Fri Aug 30, 2013 12:03 pm
by kirikou
Hello everybody,

Please i want to get the "The FTP client name" when on SSH event "OnFileUploaded" in lua script.

I don't know how to do ...

Your Welcome

Re: how to get "The FTP client name" and use string manipula

Posted: Mon Sep 02, 2013 3:33 pm
by FTP
The variable "%ClientVersion" is only for the FTP client.