From the spec:

mput [local-files] - Expand wild cards in the list of local-files given as arguments and do a put for each file in the resulting list. The list of files should be separated by spaces.

Examples:
ftp> mput *
ftp> mput *.html
ftp> mput *.html test.txt README

Doesn't look like you can specify the remote name on MPUT.

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Tuesday, February 07, 2012 2:37 PM
To: midrange-l@xxxxxxxxxxxx
Subject: weird ftp issue

On GDWEB I've got these files in /vrtclg:
Object link Type
QIMGCLG STMF
VRT01 STMF
VRT02 STMF

If I do this:
ftp gdweb2
namefmt 1
bin
lcd /vrtclg
Local working directory is /vrtclg
cd /vrtclg
250 "/vrtclg" is current directory.
mput vrt*
250 Now using naming format "1".
257 "/vrtclg" is current directory.
229 Entering Extended Passive Mode (|||38116|).
150 Sending file to /vrtclg/VRT01
226 File transfer completed successfully.
12369 bytes transferred in 0.001 seconds. Transfer rate 12665.856
KB/sec.
229 Entering Extended Passive Mode (|||11517|).
150 Sending file to /vrtclg/VRT02
226 File transfer completed successfully.
12369 bytes transferred in 0.000 seconds. Transfer rate 0.000 KB/sec.
Notice, two files transferred?
Now, watch this:
mput vrt* vrt*
229 Entering Extended Passive Mode (|||50858|).
150 Sending file to /vrtclg/VRT01
226 File transfer completed successfully.
12369 bytes transferred in 0.000 seconds. Transfer rate 0.000 KB/sec.
229 Entering Extended Passive Mode (|||11088|).
150 Sending file to /vrtclg/VRT02
226 File transfer completed successfully.
12369 bytes transferred in 0.001 seconds. Transfer rate 12665.856
KB/sec.
229 Entering Extended Passive Mode (|||34576|).
150 Sending file to /vrtclg/VRT01
226 File transfer completed successfully.
12369 bytes transferred in 0.000 seconds. Transfer rate 0.000 KB/sec.
229 Entering Extended Passive Mode (|||9473|).
150 Sending file to /vrtclg/VRT02
226 File transfer completed successfully.
12369 bytes transferred in 0.000 seconds. Transfer rate 0.000 KB/sec.
Notice, FOUR files transferred?

Why?

Is it doing this:
Transfer VRT01 to VRT01, VRT02
Transfer VRT02 to VRT01, VRT02
Thus VRT02 is a spitting image of VRT01 when that is not my intent?

This may help explain one really long ftp transmission, if it's sending
two multiGB stream files twice.

Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.