Accessing files from Macintosh
If you are using a Macintosh you can move files back and forth from your Mac
to the SAF file server. This is accomplished via the use of a common "transfer"
area and two commands which must be run on the unix end to get/put files from/to
that area. On the Macintosh side regular drag/drop is used. The two commands
handle the conversion of the text files on the fly, so that Macintosh text files
are converted to Unix text files, and vice versa, with no further manipulations required.
On the Macintosh
- Open Chooser
- Click on Appleshare
- Select zone Net12
- Select machine safserver
- Select Guest access
- It will put up a password prompt, enter SAF_XFER.
Remember that the password is case sensitive.
- A SAF transfer area icon will appear on your desktop.
- Create a folder inside this with your username. Again, case sensitive.
If your username is freddy then that will be the name of the folder.
- Drag files into/out of your folder.
On the Unix machine
- Establish an ssh session from your Macintosh.
- Move to the directory where the files are to be deposited with cd.
- Retrieve the files with macget. Example:
srcdir is /mac_transfer/freddy
getting BINARY file: somegraphics.gif
getting TEXT file: text_from_mac.txt
Files transferred: 2
- To send files to the Macintosh use macput with the files to send
passed as command line arguments. Example:
% macput a_unix_file.txt safgraphics.gif
putting TEXT file: a_unix_file.txt
putting BINARY file: somegraphics.gif
Files transferred: 2
Limitations, cautions, etc.
- Throw the transfer area into the trash on your Macintosh when you are done for the day.
Leaving these open all the time wastes resources on the server.
- On the Macintosh side remember to save files in text form. The Unix machine will
not be able to do anything useful with a sequence or other file which is stored as a
Microsoft Word document!
- macput will not allow paths in filenames.
- If you want to send a large number of files use zip to create an archive
and them put that archive, unpacking them on the Macintosh.
- A folder will be created with your name if it does not already exist.
- If a file already exists on the Unix system and you try to copy it (again)
with macget the program will not overwrite the existing file. This is a safety measure.
The warning message that will result is:
This file already exists in your current directory.
The version in /mac_transfer/mathog was not copied.
Delete text_from_mac.txt if you want /mac_transfer/freddy/text_from_mac.txt to be copied.
- For security reasons macget will not copy in files that begin with a ".". Unless
you know what you are doing you should never touch files of this type.
- Do not use anything but a-z,A-Z,0-9, underscore, dash, and "." in file names.
- Give files meaningful names and use extensions like ".seq" for GCG DNA sequences, or ".nfa" for DNA fasta sequences.
- If a file already exists in the transfer area and you copy to it (again) with macput
that file will be overwritten.
- This transfer area is not to be used for any purpose other than transferring files between
your Macintosh and the SAF unix server.
- Files left in the transfer area will be automatically deleted after several hours.
- The reason this area shows up with the old fashioned icon is that it is connected via ethertalk
and not ethertalk over TCP/IP.
- You may also upload/download files through the w2h interface.
- If you can find an sftp client for the Macintosh you will be able to transfer files that way too.
- The DAVE program from Thursby systems should allow you access to your disk area as easily
as the Windows users can. This is commercial software but it isn't terribly expensive and is
probably worth having if your lab has a mixture of PCs and Macs.