In some sections of your labs, you will be asked
to transfer some documents, for example, sample C++ applications from
FTP server -- the CS Department ftp server, to Hercules -- the machine
where you have your accounts.
To do this you use the command-line FTP
program located on Hercules.
The following is a sample session showing
how to transfer
First, from Hercules, change to the directory where you want to store this file, and then follow the following procedures.
Note: The commands in red are those that you are supposed to enter. The instructions for responding to particular prompts are in bold.
The following is a sample session showing how to transferhello.cpp, from FTP server's pub/class/110/ftp/cpp directory to your Hercules account.
hercules% ftp ftp Connected to HERMES.CS.UREGINA.CA. 220- 220- Welcome to the Computer Science Department 220- at the University of Regina's 220- Anonymous FTP Server. 220- 220- Access to this system is provided 220- in support of education and research. 220- 220- Login with User ID 'ftp' or 'anonymous'. 220- Please provide your e-mail address as the Password. 220- 220- All access to this system is Logged. 220- 220- Unauthorized access is prohibited. 220- 220 HERMES.CS.UREGINA.CA FTP server ready. Name (ftp:guili): anonymous 331 Guest login ok, type your name as password. Password: (JUST TYPE IN YOUR WebMail E-Mail Address) 230 Guest login ok, access restrictions apply. ftp> ascii (NOTICE YOU MUST ENTER THE ascii MODE) 200 Type set to A. ftp> cd pub/class/110/ftp/cpp 250 CWD command successful. ftp> get hello.cpp 200 PORT command successful. 150 Opening ASCII mode data connection for 'hello.cpp' (587 bytes). 226 Transfer complete. local: hello.cpp remote: hello.cpp 612 bytes received in 0.004 seconds (149.83 Kbytes/s) ftp> quit 221 Goodbye. hercules%