Lab9 FTP Manual
Lab9 FTP Manual
ascii
cd
close
delete to delete (remove) a file in the current remote directory (same as rm in UNIX)
get
to copy one file from the remote machine to the local machine
help
lcd
ls
to copy multiple files from the remote machine to the local machine;
you are prompted for a y/n answer before transferring each file
mput
to copy multiple files from the local machine to the remote machine;
you are prompted for a y/n answer before transferring each file
open
put
to copy one file from the local machine to the remote machine
pwd
to find out the pathname of the current directory on the remote machine
quit
The third digit of the reply code is used to provide additional detail for each of the categories
defined by the second digit.
1.6 Exercise
Write a program to implement a simple FTP server and client which allows the following
operation:
a) List the files in the server (eg: ls)
b) get a file from the server (get <filename>)
c) put a file to the server (put <filename>)
Note:
Client and server programs should be run in different directories.
References:
1. http://www.deskshare.com/resources/articles/ftp-how-to.aspx
2. http://www.cs.colostate.edu/helpdocs/ftp.html