Using My "mail-files" Script
For several of my courses I provide a mail-files
script to use for turning in homework from the command line,
slightly customized for the course.
To use this script, do the following:
-  Put a copy in the directory with the files to turn in:
	
	-  This is easy if you're sitting in front of one the lab
		machines: 
		Open the link to the script in the "sample programs"
		page and use "save as".
	
-  If instead you're logged in remotely (e.g., via PuTTY), 
		easiest way may be to open the link to the script
		in your browser and start a vim session in the
		remote login session, via vim mail-files.  
		In the vim session, 
		first type :set paste
		so vim doesn't mess with indenting, 
		and then go into insert mode and use copy-and-paste 
		to copy text from the browser window into 
		the vim session.  
		Exit insert mode, save, quit.
	
 
-  Tell the system this is an executable script by typing
	chmod u+x mail-files.
-  Now you can run the script by typing ./mail-files 
	followed by the names of all the files you want to turn in,
	e.g., ./mail-files p1.c p2.c.
	The script will prompt you for a homework number (e.g., 1
	for the first homework) and any text to include in the body
	of the e-mail.
	If all goes well, the script sends me your homework,
	with a Cc to your TMail address so you can confirm what
	was actually sent.