APPEND command in FTP doesn't works well.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

W2000 Pro SP3. I try to execute "append" command in a MS-DOS windows with
FTP. When I exexcute "append" the result is:

- 150 Opening data Connection for <file> (ip,port)

and the append command do nothing and later I have to close the MS-DOS
windows.

The "put" command works well.

Can anybody help me???

Thank you,
 
Yamabuki said:
Hi,

W2000 Pro SP3. I try to execute "append" command in a MS-DOS windows with
FTP. When I exexcute "append" the result is:

- 150 Opening data Connection for <file> (ip,port)

and the append command do nothing and later I have to close the MS-DOS
windows.

The "put" command works well.

Can anybody help me???

Thank you,

Append works very well under win2000 - I just tried
it myself. I suggest you show us exactly each and every
ftp command you used. Someone will then tell you
where you might have gone wrong.
 
Hi,

The commands are:

ftp> o 172,23,1,47
Host desconocido 172,23,1,47.
ftp> o 172.23.1.47
Conectado a 172.23.1.47.
220 barcelon FTP server (Version V02.2A00, Jan 19 2000 13:53:48) re
Usuario (172.23.1.47:(none)): cuafab
331 Password required for cuafab.
Contraseña:
332 Account required.
Cuenta: s
230 User CUAFAB logged in.
ftp> append "M:\GESFAP\Etipap\Reker\bat_FTP\E1PDTE.TXT" FX.E1PDTE1.
200 PORT command successful.
150 Opening data connection for FX.E1PDTE1.ZAR (172.17.20.5,2292).

........... I have to close the windows because if i don't, the windows is
opened for years,......

Thanks,

Núria

"Pegasus (MVP)" escribió:
 
Try to walk before you run, by working with small text
files located in the current folder. Here is a screen shot
of what I did:
- Create two small text files (dir.txt and date.txt)
- Append date.txt to dir.txt
It worked as expected.

Note that the ftp "append" command appends data to a
file located on the FTP server. Your own example appears
to do the opposite: append data to a file located on your
hard disk. It does not work like this.

c:\>dir > dir.txt
c:\>echo %date% > date.txt
c:\>ftp pegasus.info
Connected to pegasus.info.
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 2 of 50 allowed.
220-Local time is now 08:41. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.
User (pegasus.info:(none)): pegasus
331 User pegasus OK. Password required
Password:
230-User pegasus has group access to: pegasus
230 OK. Current restricted directory is /
ftp> put dir.txt
200 PORT command successful
150 Connecting to port 1182
226-File successfully transferred
226 0.301 seconds (measured here), 2.52 Kbytes per second
ftp: 796 bytes sent in 0.00Seconds 796000.00Kbytes/sec.
ftp> append date.txt dir.txt
200 PORT command successful
150 Connecting to port 1183
226-File successfully transferred
226 0.304 seconds (measured here), 2.49 Kbytes per second
ftp: 796 bytes sent in 0.00Seconds 796000.00Kbytes/sec.
ftp> get dir.txt
200 PORT command successful
150 Connecting to port 1184
226-File successfully transferred
226 0.000 seconds (measured here), 6.93 Mbytes per second
ftp: 796 bytes received in 0.02Seconds 39.80Kbytes/sec.
ftp> quit
221-Goodbye. You uploaded 2 and downloaded 1 kbytes.
221 Logout.

c:\>type dir.txt
Volume in drive C is System
Directory of c:\
05/12/2005 11:16 <DIR> Documents and Settings
26/12/2005 22:00 <DIR> Exchange
01/02/2006 08:20 <DIR> Outlook Express
31/01/2006 22:05 <DIR> Program Files
01/02/2006 08:06 <DIR> Temp
31/01/2006 21:09 <DIR> Tools
30/01/2006 13:00 <DIR> WINNT
1 File(s) 0 bytes
11 Dir(s) 4,404,011,008 bytes free
Wed 01/02/2006
 
Hi,

I did it and the result is the same:

Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\Dokumente und Einstellungen\wreker>m:

M:\>cd gesfap

M:\GESFAP>cd etipap

M:\GESFAP\Etipap>cd reker

M:\GESFAP\Etipap\Reker>cd bat_ftp

M:\GESFAP\Etipap\Reker\bat_FTP>ftp 172.23.1.47
Conectado a 172.23.1.47.
220 barcelon FTP server (Version V02.2A00, Jan 19 2000 13:53:48) ready.
Usuario (172.23.1.47:(none)): cuafab
331 Password required for cuafab.
Contraseña:
332 Account required.
Cuenta: s
230 User CUAFAB logged in.
ftp> put dir.txt
200 PORT command successful.
150 Opening data connection for DIR.TXT (172.17.20.5,3345).
226 Transfer complete.(SAM-IO)
ftp: 1190 bytes sent in 0,00Segundos 1190000,00KB/s.
ftp> append fecha.txt dir.txt
200 PORT command successful.
150 Opening data connection for DIR.TXT (172.17.20.5,3348).

...........

Thanks,

Núria

"Pegasus (MVP)" escribió:
Try to walk before you run, by working with small text
files located in the current folder. Here is a screen shot
of what I did:
- Create two small text files (dir.txt and date.txt)
- Append date.txt to dir.txt
It worked as expected.

Note that the ftp "append" command appends data to a
file located on the FTP server. Your own example appears
to do the opposite: append data to a file located on your
hard disk. It does not work like this.

c:\>dir > dir.txt
c:\>echo %date% > date.txt
c:\>ftp pegasus.info
Connected to pegasus.info.
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 2 of 50 allowed.
220-Local time is now 08:41. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.
User (pegasus.info:(none)): pegasus
331 User pegasus OK. Password required
Password:
230-User pegasus has group access to: pegasus
230 OK. Current restricted directory is /
ftp> put dir.txt
200 PORT command successful
150 Connecting to port 1182
226-File successfully transferred
226 0.301 seconds (measured here), 2.52 Kbytes per second
ftp: 796 bytes sent in 0.00Seconds 796000.00Kbytes/sec.
ftp> append date.txt dir.txt
200 PORT command successful
150 Connecting to port 1183
226-File successfully transferred
226 0.304 seconds (measured here), 2.49 Kbytes per second
ftp: 796 bytes sent in 0.00Seconds 796000.00Kbytes/sec.
ftp> get dir.txt
200 PORT command successful
150 Connecting to port 1184
226-File successfully transferred
226 0.000 seconds (measured here), 6.93 Mbytes per second
ftp: 796 bytes received in 0.02Seconds 39.80Kbytes/sec.
ftp> quit
221-Goodbye. You uploaded 2 and downloaded 1 kbytes.
221 Logout.

c:\>type dir.txt
Volume in drive C is System
Directory of c:\
05/12/2005 11:16 <DIR> Documents and Settings
26/12/2005 22:00 <DIR> Exchange
01/02/2006 08:20 <DIR> Outlook Express
31/01/2006 22:05 <DIR> Program Files
01/02/2006 08:06 <DIR> Temp
31/01/2006 21:09 <DIR> Tools
30/01/2006 13:00 <DIR> WINNT
1 File(s) 0 bytes
11 Dir(s) 4,404,011,008 bytes free
Wed 01/02/2006


Yamabuki said:
Hi,

The commands are:

ftp> o 172,23,1,47
Host desconocido 172,23,1,47.
ftp> o 172.23.1.47
Conectado a 172.23.1.47.
220 barcelon FTP server (Version V02.2A00, Jan 19 2000 13:53:48) re
Usuario (172.23.1.47:(none)): cuafab
331 Password required for cuafab.
Contraseña:
332 Account required.
Cuenta: s
230 User CUAFAB logged in.
ftp> append "M:\GESFAP\Etipap\Reker\bat_FTP\E1PDTE.TXT" FX.E1PDTE1.
200 PORT command successful.
150 Opening data connection for FX.E1PDTE1.ZAR (172.17.20.5,2292).

.......... I have to close the windows because if i don't, the windows is
opened for years,......

Thanks,

Núria

"Pegasus (MVP)" escribió:
 
Back
Top