THIS IS A HISTORICAL FILE DATED ABOUT MARCH 1993 ================================================ INTRODUCTION TO E-MAIL IN BIOMED COMPUTER (UNIX with vi editor) NETSIVI BEN-AMOTS Mail via computer is used widely for sending letters in the Technion and between countries. An outstanding application is writing a paper with co-author in other countries. You mail him your last version of the paper via the computer e-mail. He makes his corrections and modifications and mails it to your computer. These iterations are VERY fast. More than FAX - you do not print at all. You need only to know how to use few commands of the mail. Here is a presentation of the necessary commands in BIOMED computer, (that works with UNIX.) Remember that all UNIX computers are VERY case-sensitive. *************************************************************************** **REMEMBER NOT TO PRESS CTRL-Z!!! Leave mail with QUIT or EXIT commands.** *************************************************************************** biomed-~} mail You write: mail (This is alias to the unix command mush -f) The computer answers > 1 Moshe Kohen Dec 3 subject of letter That shows you that you have a letter number 1 from Moshe Kohen, and more lines for each letter. Then you have the prompt yourname [1/3] MAIL> that means you have 3 letters, and the pointer is on letter no. 1. HOW TO DEAL WITH COMING MAIL You may write: yourname [1/3] MAIL> dir (This is alias to the original command headers) and get the list of letters again. To read one of the letters you write its number and press the RETURN key. yourname [1/3] MAIL> 1 After reading it, you may delete it: yourname [1/3] MAIL> delete 1 yourname [1/3] MAIL> dir or copy it: yourname [1/3] MAIL> 1 yourname [1/3] MAIL> save filename It will save the file that was read with the previous command, in directory Mail_Folders, from where you move it (after leaving mail) with UNIX command mv. To leave mail, you write yourname [1/3] MAIL> quit and get the prompt biomed-~} If BEFORE leaving, you regret that you deleted a letter of your mail, write yourname [1/3] MAIL> exit instead quit, and the deleted letters will revive again. After leaving mail, you may move saved mail. For example: biomed-~}mv /u/yourloginname/Mail_Folders/filename /u/yourloginname/. HOW TO SEND MAIL (A LETTER) Your address is yourloginname@biomed.technion.ac.il Replace yourloginname with the word you login with, (probably your name.) To send mail, you write: mail yourname [1/3] MAIL> mail and get: TO: If you send mail in the Technion, just write: TO: hisloginname@hiscomputername For example: TO: moshe@biomed If you send mail outside the Technion, type his full address: TO: hisloginname@hiscomputername.something.something.hiscountrycode Replace correctly, or type the exact e-mail address you have seen in his letter, and then press RETURN key. Now you have prompt: Subject: and you write the subject of the letter. Example: Subject: Establish connection vi EDITOR Now the computer enters you automatically into the vi editor, which is VERY UNfriendly. Also needs special KERMIT install for PC-terminals (not for tektronix). If you write your message on the spot, press the key i. Now write your message, WITHOUT USING THE ARROWS, yet you may use the BS BACKSPACE key. When completed, or for corrections, press CTRL-3 (press CTRL key, and BEFORE removing your finger from the CTRL key, press with a finger of the other hand the 3 key.) In PC-terminals, use ESC instead CTRL-3 (after special KERMIT installation; ask me - Netsivi). You should hear a beep. If not, press CTRL-3 again. Now you heard the beep. If you want to correct, locate the right place with the arrows. Remember to use the arrows only after you heard the beep. To enter text, press the i key once, and then write the text. Then - CTRL-3 until you hear the beep. To delete a character, locate it, then press the x key once. To add a line below the current line, press the key o once. To delete the current line, locate it, then press the key d TWICE. Long text: CTRL-f means roll page Forward; CTRL-u means roll page backward. When your letter is completed, press CTRL-3 and hear the beep, then press : that is press SHIFT, and BEFORE removing your finger, press with a finger of the other hand the : key. You are now at the bottom of the screen. Now write wq, and press the RETURN key. The computer suggests you to press ^D. It means press CTRL-d. You press the CTRL key, and BEFORE removing your finger, press with a finger of the other hand the d key. If you have a prompt: Cc: Press RETURN, or, if you want a copy of your letter to yourself, enter your address: yourloginname@biomed The computer ask you to press s, c, or d. Now press s, and the letter is already on its way. You have again the prompt: yourname [1/3] MAIL> Write dir to see your copy of the letter, or if the letter came back because of incorrect address. yourname [1/3] MAIL> dir MAILING A PAPER OR A COMPUTER PROGRAM You may want to send a letter that you have written previously with your favorite editor (ASCII, please), or it can be your new computer program written for FORTRAN or C compilers, or your paper in an ASCII file. NOT THE BINARIES, PLEASE!!! To do it: Repeat the above procedure, but when you enter vi, DO NOT PRESS THE i KEY. Press : (SHIFT with : together.) You are at the bottom of the screen. Now write: r /u/yourloginname/yourfilename and press the RETURN key. Remember, small r. Remember to replace to your real login name and file name. Remember to give the full path to your file. VERY EASY TO FORGET! DON'T FORGET! Done correctly, you see the first page on the screen. Otherwise, it says it cannot find the file. Now, CTRL-3 (beep), SHIFT :, wq RETURN, CTRL-d, s, just like above. FRIENDLY EDITOR pico (instead vi editor) You may ask Netsivi to make your e-mail work with the new friendly editor pico, instead awful vi editor. Your work with pico is natural. OPERATION outside mail: pico namefile (small letters, please) Mail automatically invokes pico editor (instead vi), once Netsivi makes the necessary changes. LEAVING EDITOR: CTRL-X (IT ASKS TO SAVE OR NOT) Save without leaving editor: CTRL-O Bring file: CTRL-R and then /u/yourloginname/path/yourfilename Remember to give the full path to your file. VERY EASY TO FORGET! DON'T FORGET! Check spelling: CTRL-T Delete line: CTRL-K Undelete last deleted line at cursor position: CTRL-U Next page: CTRL-V Previous page: CTRL-Y Look in two lines at screen bottom for help. More detailed help: CTRL-G After leaving pico with CTRL-X, follow the above instructions for mail. That ends the minimum necessary to deal with e-mail. The mail has more possibilities and facilities to make mailing easier, and in the future you will learn them. BEHATSLAHA GOOD LUCK (You need it) UDACHI Netsivi