next up previous contents
Next: Compiling programs Up: No Title Previous: How to login/logout

Transferring files from/to other computers

  Usually this is done with ftp (file transfer protocol). Generally it is best to do this while logged into newt, i.e., if you wish to transfer files from a VAX, do it from newt rather than running ftp from the VAX. The reason for this is that the ftp software on newt is in general easier to use, and also that the CSD computers normally have restrictions on who can use ftp, whereas newt doesn't.

Note that some older systems use sendfile and getfile for transfering files. ftp is both faster and more reliable.

From/to CSDVAX while logged into newt

ftp csdvax.csd.unsw.oz.au   
ftp> cd [89B0012.tex.thesis]     ! change remote directory, if necessary
ftp> ls                          ! list the VAX directory
ftp> lcd ~user/tex/thesis        ! change local directory, if necessary
ftp> send chapter1.tex           ! send a file to the VAX
ftp> get vaxfile.txt             ! get a file from the VAX
ftp> mget data.*                 ! get a number of files
ftp> !less chapter1.tex          ! have a look at chapter1.tex
ftp> quit

Note the use of the exclamation mark to execute a shell command. See man ftp for details.

From/to newt while logged into CSDVAX

You may need special privileges on CSDVAX to be able to do this. Note the use of double quotes to surround names that must be in lowercase for UNIX to understand them

$ ftp newt.phys
%FTP-I-ATTEMPTING, Attempting to connect to host NEWT.PHYS
220 newt.phys.unsw.OZ.AU FTP server (Ultrix Version 4.1 Tue May 8 07:03:17)
EDT 1990) ready.
FTP> login "mcba"
331 Password required for mcba.
Password:
230 User mcba logged in.
FTP> cd "tex"
250 CWD command successful.
FTP> get "unix.tex"
200 PORT command successful.
150 Opening data connection for unix.tex (129.94.128.5,60217) (79145 bytes).
226 Transfer complete.
%FTP-I-DATA_RATE, Transfered 80938 bytes in 00:00:04.64 = 17443 bytes/Second
FTP>  quit
221 Goodbye.
%FTP-I-CLOSING, Connection Closing
-IPACP-E-CC, Connection is closing - operation invalid
$

From/to the CANCES cluster while logged onto newt

ftp cfdhp1.cances.unsw.oz.au
ftp> binary                      ! set binary mode
ftp> cd tex/thesis               ! change remote directory, if necessary
ftp> ls                          ! list the remote directory
ftp> lcd ~user/tex/thesis        ! change local directory, if necessary
ftp> send chapter1.tex           ! send a file to usage
ftp> prompt                      ! turn off interactive mode
ftp> mput figures.*              ! send lots of files
ftp> get unixfile.txt            ! get a file from usage
ftp> !less chapter1.tex          ! have a look at chapter1.tex
ftp> quit

From/to AARNET/Internet computers while logged into newt

Use ftp in the same way as described above for an RS6000. It is useful to note that many computers have so-called anonymous ftp accounts which allow anyone to access them and retrieve files placed in a special file system, e.g.,

ftp gatekeeper.dec.com
ftp> binary                      ! set binary mode
ftp> ls                          ! list the remote directory
ftp> cd pub/gnu                  ! change remote directory
ftp> get gcc.001                 ! get a file from the remote computer
ftp> quit

From/to a PC connected via a serial line

C:\ > kermit                     ! start MS-DOS kermit
kermit> set port 1               ! if using COM1; specify 2 if using COM2
kermit> set baud 9600            ! set the baud rate appropriately
kermit> set receive pack 2000    ! if you want to use long packets; this
                                 !   improves the throughput, but may not
                                 !   work if the line is noisy
kermit> connect
newt> kermit                     ! start remote kermit on newt
kermit> server                   ! instruct the remote kermit to go into
                                 !   server mode
ALT-X                            ! get back to the local kermit; you may
                                 !   need to type a character other than
                                 !   ALT-X to return to the command prompt
kermit> get file.ps
kermit> send file.tex
kermit> bye                      ! to logoff newt and exit both kermits
C:\ >
You may wish to use ``set file type binary'' on both the PC kermit and the UNIX kermit.



Michael C. B. Ashley
Fri Jun 28 13:34:23 EST 1996