PDA

View Full Version : Two questions


builder
08-04-2003, 07:46 PM
Hello people,

1 - Im trying get the numbers of connected users at iTCL script.
(eg: SITE USERCOUT - return number of connected users)

2 - Im trying get user info about some user connected (username and group).
(eg: SITE ONLINEUSERS - return builder,dummyuser for example)

I know about uinfo.msg (but this is cookie, not variables to get from iTCL script).

Any kind of help are welcome.
Thanks in advance.

:cool:

Mouton
08-08-2003, 10:54 PM
u can't.
Only way to get those info is through shared memory (C).

darkone
08-09-2003, 12:03 PM
Actually you can use cookies for that :) %../scripts/myscript.itcl %[service(FTP_SERVICE)(USERSONLINE)] .. or whatever that cookie was :) but there is no way of getting list of users online tho

builder
08-09-2003, 10:03 PM
Im writing a little guy to make control of connected users at ioFTPD.

Maybe some useful events or variables can be added:

(OnUserLogin)
(OnUserLogout)

%OnlineUserList - returns user1,user2,user3

I need a way to keep track about connected users.

If the user dont issue the 'QUIT' command for example, that event (onUserLogout) will not be triggered, maybe the creation of event 'OnUserDisconnect' can solve the problem.

(this is the reason of custom commands, my application will execute these commands periodically and update the display).

Well, any kind of help are welcome.

Thanks.

:rolleyes:

b>d>>s
08-10-2003, 07:30 AM
well just build a list with itcl onlogin then delete from list onlogout

builder
08-10-2003, 10:39 AM
Seems ioFTPD only have onFTPLogin event... AFAIK.
;)

Mouton
08-10-2003, 11:00 AM
I really suggest doing it in C... Would be MUCH easier and MUCH cleaner than all that hacks you would have to do in itcl...