PDA

View Full Version : show .msg file


flaxs
04-30-2005, 10:43 AM
Halo, there. I'm a Newbie :)

I just want to know how can i get this, when I use "list -al" :

[L] LIST -al
[L] 150 Opening ASCII mode data connection for directory listing.
[L] 226- [Ul: 0.0MB] [Dl: 26921.3MB] [Speed: 0.00K/s] [Free: 218998MB]
[L] 226 [Section: DEFAULT] [Credits: 394648.1MB] [Ratio: 1:3]

Does it just simply display a ".msg" file?

A ".msg" file like this?

[Section: %[$section]]-[Free: %.2[free($path)(giga)]GB]-[Ratio: %[ratio]]-[Speed: %.1[speed]kb/s]
[Credits: %.0[credits(mega)]MB]-[UL: %.2[allup(bytes)(giga)]GB]-[DL: %.2[alldn(bytes)(giga)]GB]


but how can I config ioFTPD.ini to show it after "list al"?
I try
[FTP_Pre-Command_Events]
list = !..\txt\ftp\stats.msg

but it doesn't work....


Can anyone help me?
:confused: :confused: :confused:

neoxed
04-30-2005, 12:58 PM
http://www.ioftpd.com/kb/view.php?kbid=70

flaxs
04-30-2005, 09:24 PM
Thanks NeoXed, but you didn't get me...

I don't mean show it after uploadcomplete, I want this show right after every "list -al"

neoxed
04-30-2005, 11:22 PM
No, that is what you're looking for. Perhaps you should try it first before claiming otherwise.

When a client sends the traditional LIST command to retrieve a directory listing, the listing is received through a normal FTP data connection. The "TransferComplete" message is shown after each successful data transfer. So yes, this is what you’re looking for.

Some clients support control connection listing (STAT) which doesn’t require a data connection, instead the listing is received through the control channel. In this scenario, the "TransferComplete" message is not shown.

flaxs
05-01-2005, 01:02 AM
Oh, yes! It works!!! :D :D

Thank you, NeoXed!!

But could you tell me how to display a specified .msg file when sending a command like MKD, STOR, etc.

What should I do in ioFTPD.ini??