>How about creating another method on your command which works without those >parameters and call that?
Ok maybe I did not explain well. I want to store in a session variable inside BaseUser, the amount of data uploaded/downloaded on that particular session. I want to limit to 100M download and 10M upload per session. If user disconnects and reconnects thats fine, he can upload/download again those. If user executes command "site sessioninfo" it will get the current upload/download for this session. However I want to add the output after command does a "dir" or "nlist" or STOR or RET. Example: ftp> dir 200 Command PORT okay. 150 File status okay; about to open data connection. -rw-rw-r-- 1 FTPD FTPD 453903 Feb 24 02:16 server.log -rw-rw-r-- 1 FTPD FTPD 54 Feb 14 12:31 Readme.txt drwxrw-r-- 3 FTPD FTPD 4096 Feb 8 21:01 test 226 - [Session Uploaded : 0.0Mb - 10.0 Mb left] 226 [Session Downloaded: 17.5Mb - 82.5 Mb left] ftp> ftp> site sessioninfo 226 - [Session Uploaded : 0.0Mb - 10.0 Mb left] 226 [Session Downloaded: 17.5Mb - 82.5 Mb left] ftp> Thanks!
