Remove the last line just added.
!! |
ncftpput -d -v -p a@b.ca localhost /pub/dropbox ~/s/docs/file.sample.bin ncftpput -d -v -p a@b.ca localhost /pub/dropbox/tong ~/s/docs/file.sample.bin !!
$ touch abc $ ftp localhost Connected to localhost (127.0.0.1). 220- 220- ******************* 220- * Tong's FTP site * 220- ******************* 220- 220 xpt FTP server (Version wu-2.6.2-8) ready. Name (localhost:tong): ftp 331 Guest login ok, send your complete e-mail address as password. Password: 530-The response '' is not valid 530-Please use your e-mail address as your password 530- for example: joe@localhost.localdomain 530 Login incorrect. Login failed. Password: 230- 230- Hi, ftp from xpt, Welcome to Tong's FTP site. 230- You are now in xpt/ at local time Thu Dec 12 02:00:35 2002 230- There are currently 1 of maximum 2 user logged on to this site. 230- Enjoy yourself here and feel free to contact me at root@sunny. 230- 230 Guest login ok, access restrictions apply. Remote system type is UNIX. Using binary mode to transfer files. ftp> put abc local: abc remote: abc 227 Entering Passive Mode (127,0,0,1,246,90) 553 abc: Permission denied on server. (Upload) ftp> cd pub 250 CWD command successful. ftp> put abc local: abc remote: abc 227 Entering Passive Mode (127,0,0,1,85,167) 553 abc: Permission denied on server. (Upload) ftp> mkdir ttt 550 ttt: Permission denied on server. (Upload dirs) ftp> cd dropbox 250 CWD command successful. ftp> mkdir ttt 550 ttt: Permission denied on server. (Upload dirs) ftp> put abc local: abc remote: abc 227 Entering Passive Mode (127,0,0,1,128,160) 150 Opening BINARY mode data connection for abc. 226 Transfer complete. ftp> cd tong 250 CWD command successful. ftp> put abc local: abc remote: abc 227 Entering Passive Mode (127,0,0,1,131,91) 150 Opening BINARY mode data connection for abc. 226 Transfer complete. ftp> mkdir ttt 257 "/pub/dropbox/tong/ttt" new directory created. ftp> cd ttt 250 CWD command successful. ftp> mkdir ttt 257 "/pub/dropbox/tong/ttt/ttt" new directory created. ftp> mkdir ttt 521 "/pub/dropbox/tong/ttt/ttt" directory exists ftp> put abc local: abc remote: abc 227 Entering Passive Mode (127,0,0,1,138,151) 150 Opening BINARY mode data connection for abc. 226 Transfer complete. ftp> cd ttt 250 CWD command successful. ftp> put abc local: abc remote: abc 227 Entering Passive Mode (127,0,0,1,13,55) 150 Opening BINARY mode data connection for abc. 226 Transfer complete. ftp> mkdir ttt 550 ttt: Permission denied on server. (Upload dirs) ftp> 221-You have transferred 0 bytes in 4 files. 221-Total traffic for this session was 1895 bytes in 4 transfers. 221-Thank you for using the FTP service on xpt. 221 Goodbye.
$ ncftpput -d -v -p a@b.com localhost /pub/dropbox ~/s/docs/file.sample.bin LibNcFTP 3.1.3 (March 4, 2002) compiled for linux-x86 Uname: Linux|xpt|2.4.18-14|#1 Wed Sep 4 12:13:11 EDT 2002|i686 Glibc: 2.2.93 (development) 220: ******************* * Tong's FTP site * ******************* xpt FTP server (Version wu-2.6.2-8) ready. Connected to localhost. Cmd: USER anonymous 331: Guest login ok, send your complete e-mail address as password. Cmd: PASS a@b.com 230: Hi, anonymous from xpt, Welcome to Tong's FTP site. You are now in xpt/ at local time Thu Dec 12 01:50:55 2002 There are currently 1 of maximum 2 user logged on to this site. Enjoy yourself here and feel free to contact me at root@sunny. Guest login ok, access restrictions apply. Cmd: PWD 257: "/" is current directory. Logged in to localhost as anonymous. Cmd: FEAT 500: 'FEAT': command not understood. Cmd: HELP SITE 214: The following SITE commands are implemented. UMASK HELP GROUPS IDLE ALIAS CHECKMETHOD CHMOD CDPATH CHECKSUM Direct comments to root@sunny. Cmd: CLNT NcFTPPut 3.1.3 linux-x86 500: 'CLNT NcFTPPut 3.1.3 linux-x86': command not understood. Cmd: CWD /pub/dropbox 250: CWD command successful. Cmd: TYPE I 200: Type set to I. Cmd: SIZE file.sample.bin 550: file.sample.bin: not a plain file. Cmd: EPSV 229: Entering Extended Passive Mode (|||57141|) Cmd: STOR file.sample.bin 150: Opening BINARY mode data connection for file.sample.bin. .../tong/s/docs/file.sample.bin: ETA: 0:00 512.00/512.00 B 452.90 kB/s 226: Transfer complete. /home/tong/s/docs/file.sample.bin: 512.00 B 17.94 kB/s Cmd: MDTM 20000122192224 file.sample.bin 550: 20000122192224 file.sample.bin: No such file or directory. Cmd: QUIT 221: You have transferred 512 bytes in 1 files. Total traffic for this session was 1870 bytes in 1 transfers. Thank you for using the FTP service on xpt. Goodbye.
$ ftp localhost Connected to localhost (127.0.0.1). 220- 220- ******************* 220- * Tong's FTP site * 220- ******************* 220- 220 xpt FTP server (Version wu-2.6.2-8) ready. Name (localhost:tong): ftp 331 Guest login ok, send your complete e-mail address as password. Password: 530- Sorry, too many ftp connetions. 530- There are already 2 of maximum 2 user logged on to this site. 530- Please try again later. 530 Login incorrect. Login failed. ftp> 221 Goodbye.