PDA

View Full Version : strange behavior working with OnResume


mr_F_2
03-13-2005, 10:07 PM
working with a script dealing with the OnResume function. not quite sure what's going on with it.... here's what happens:


APPE
somefile.file
Negotiating SSL/TLS session...
SSL/TLS negotiation successful...
SSL/TLS connection using cipher RC4-MD5 (128 bits)
550-filename(argv[2]=/!script_testing/uploadcompletetst/somefile.file)
150 Opening BINARY mode data connection for
somefile.file
TYPE A
226-File somefile.file (8.34 MB) has been downloaded 2 times totaling 16.68 MB.
226-[UL: 69856.21MB] [DL: 1194.18MB] [Speed: 0.00K/s] [Free: 16.86GB]
226-[Section: root] [Credits: 0.00MB] [Ratio: Unlimited]
226 Transfer complete.
200 Type set to A.
PASV
227 Entering Passive Mode (192,168,0,100,8,3)
LIST -al
Negotiating SSL/TLS session...
SSL/TLS negotiation successful...
SSL/TLS connection using cipher RC4-MD5 (128 bits)

independent from everything else that nobody can help me with that this event is gaying up (i think some environment variables aren't working at all), my ioDLcount script is for some reason executed.

calls to ioDLcount include (taken from INI just to be sure):
OnDownloadComplete = EXEC ..\scripts\ioDLcount\ioDLcount.exe
dlcount = EXEC ..\scripts\ioDLcount\ioDLcount_viewer.exe

that's it. so i don't know why it's being called on this event, it's very very very strange to me, seems like a bug.

Mouton
03-14-2005, 12:51 AM
Test.bat:
@echo off
echo test script
ioFTPD.ini:
[Events]
OnDownloadComplete = EXEC ..\scripts\test.bat

[FTP_Custom_Commands]
test = EXEC ..\scripts\test.bat
Resume with APPE test in FFXP:
[00:46:58] [L] site test
[00:46:58] [L] 200-test script
[00:46:58] [L] 200 Command successful.
[00:47:01] [L] TYPE I
[00:47:01] [L] 200 Type set to I.
[00:47:03] [L] PORT 192,168,0,1,7,183
[00:47:03] [L] 200 PORT command successful.
[00:47:03] [L] APPE test.zip
[00:47:03] [L] Connected. Negotiating SSL session..
[00:47:03] [L] SSL negotiation successful...
[00:47:03] [L] SSL encrypted session using cipher RC4-MD5 (128 bits)
[00:47:03] [L] 150 Opening BINARY mode data connection for test.zip.
[00:48:31] [L] 226 Transfer complete.
[00:48:31] Resumed: test.zip 165.69 MB in 1 minutes 27 seconds (1,942.5 KB/s)
[00:48:31] [L] TYPE A
[00:48:31] [L] 200 Type set to A.
[00:48:31] [L] PORT 192,168,0,1,8,164
[00:48:31] [L] 200 PORT command successful.
[00:48:31] [L] LIST -la
[00:48:31] [L] Connected. Negotiating SSL session..
[00:48:31] [L] SSL negotiation successful...
[00:48:31] [L] SSL encrypted session using cipher RC4-MD5 (128 bits)
[00:48:31] [L] 150 Opening ASCII mode data connection for directory listing.
[00:48:31] [L] 226 Transfer complete.
[00:48:31] [L] List Complete: 205 bytes in 0.18 seconds (1.1 KB/s)
[00:48:31] Transfer queue completed
[00:48:31] Transferred 1 file totaling 165.69 MB in 1 minutes 30 seconds (1,942.5 KB/s)
test.bat is not executed when APPE is completed.
You sure you don't have a %[exec] call to your .exe in your TransferComplete file ?

mr_F_2
03-14-2005, 05:08 PM
nope no calls to it in any of my text/ftp files.. and it's strange because it doesn't call any other scripts besides ioDLcount .. it's really baffling me ... i'll just consider it an anomoly.

Mouton
03-14-2005, 05:21 PM
If you try to echo the arguments your receive in your .exe, maybe you'd have more info on what event is calling it...