File INFO.SCR AUTOMATIC LOGIN TO CUNIXF FROM MS-DOS KERMIT Christine M. Gianone Manager, Kermit Developement and Distribution CUCCA/AcIS October 1991 INFO.SCR is a script program for logging in to INFO (CUNIXF) from MS-DOS Kermit from a campus Rolmphone, either a D-type data phone or a 244PC. Although you can run this script program from within Kermit by typing the command "TAKE INFO.SCR", it is more convenient to run it from DOS command level via DOS Batch programs that start Kermit for you, tell Kermit to run this script program, and feed it certain information to customize its actions. The following Batch programs are available: INFO.BAT - Connects you to CUNIXF, gets you to the prompt. EMAIL.BAT - Connects you to CUNIXF, puts you in MM. CALENDAR.BAT - Connects you to CUNIXF, puts you in Calendar data entry. To use these batch files, and INFO.SCR itself, you must be running MS-DOS Kermit 3.11 or later, and it must be installed as KERMIT.EXE in a directory that is part of your DOS PATH definition. INFO.SCR and the related Batch files should be in the same directory. For hard disk systems, this would normally be the directory C:\KERMIT\. For detailed instructions on installation and use of MS-DOS Kermit, see the Second Edition of "Using MS-DOS Kermit", available in the CUCCA/AcIS Business Office in 102 Philosophy and at local bookstores. Run any of these Batch programs just by typing its name (the part before ".BAT"), for example: C:\>email (in this example, "C:\>" is the DOS prompt, and you type "email" and then press the Enter key). The Batch programs accept two optional words on the DOS command line, after their names. The first is your CUNIXF user ID, for example abc123, and the second is your password: C:\>email abc123 secret If you leave out your password, INFO.SCR will prompt you for it. If you leave out the user ID and password, INFO.SCR will prompt you for both of them. Once INFO.SCR knows your user ID and password, it tries to connect you to the INFO system (CUNIXF) through your ROLMphone, using the default communication port and speed. Normally this is COM1 and 9600 bps, but you can change them by putting SET commands in your MSKERMIT.INI file, for example: SET PORT 2 SET SPEED 19200 Any key settings, terminal parameters, screen colors, etc, that are established in your MSKERMIT.INI file are used. If INFO.SCR fails to communicate with your ROLMphone, it will give you an informative message. Check your port and speed setting, make sure you have a data cable connecting your PC's serial port and the ROLMphone, make sure Kermit is using the same port the cable is connected to, make sure your ROLMphone actually does have a working data option, etc. For detailed troubleshooting instructions, see "Preparing for Data Communication with the CBX". Once INFO.SCR is talking to your ROLMphone, it attempts to connect to the INFO terminal server, then it tries to connect to CUNIXF, then it tries to log you in automatically, then it sets your UNIX terminal type to be the same as Kermit's (VT320), and finally it starts up the desired application, if any (such as the e-mail program, MM). Any of these steps can fail. If they do, you'll get an informative error message. Once you are successfully connected to the Info system (CUNIXF), you will have a terminal screen. The characters you type on the keyboard are sent to CUNIXF, and the characters sent by CUNIXF appear on your screen. Two special Alt-key combinations are available for your use while the terminal screen is active. An Alt-key combination is entered by holding down the Alt key and pressing the indicated letter while Alt is held down. Alt-q (hold down Alt, press q): Log out from CUNIXF, hang up the data connection, exit Kermit, return to DOS. Alt-x (hold down Alt, press x): Return to Kermit's "MS-Kermit>" prompt without logging out from CUNIXF. To get back to CUNIXF, type CONNECT and then press the Enter key. INFO If you want to access various facilities of the Info system, CUNIXF, use INFO.BAT. This procedure takes you up to the system prompt, so you can access any application. Just type "info" at the DOS prompt, optionally followed by your CUNIXF user ID, optionally followed by your password (which will echo, so make sure nobody is looking over your shoulder). Examples: info info abc123 info abc123 secret Be sure to properly terminate your application and log out from UNIX (the "exit" command) when you are finished. Get back to Kermit with Alt-q or Alt-x. EMAIL If you only want to use E-mail, use EMAIL.BAT. This starts the MM E-Mail program for you, giving you a few lines of instructions. Just type "email" at the DOS prompt, optionally followed by your CUNIXF user ID, optionally followed by your password. Examples: email email abc123 email abc123 secret To finish your your e-mail session, use Alt-Q. This should exit safely from MM, no matter whether it is in Top, Read, Send, or More mode, log you out from UNIX, hang up your data connection, and return you to the DOS prompt. CALENDAR DATA ENTRY Calendar data entry people should use CALENDAR.BAT. This starts the calendar data entry program for you. Just type "calendar" at the DOS prompt, optionally followed by your CUNIXF user ID, optionally followed by your password. Examples: email email abc123 email abc123 secret To finish your your calendar session, follow the directions on your calendar screen for exiting from the data entry program, then use Alt-Q to log out from CUNIXF, hang up your data connection, and return to the DOS prompt on your PC. CUSTOMIZATIONS Once you have the INFO.SCR, INFO.BAT, EMAIL.BAT, and CALENDAR.BAT files on your PC, you can edit them for convenience. In most cases this won't be necessary. However, the correct operation of INFO.SCR depends upon your CUNIXF system prompt being either "$ " (dollar sign followed by space, the standard Shell and K-Shell prompt) or "% " (percent followed by space, the standard C-Shell prompt). If your prompt is different, you MUST edit INFO.SCR to tell it what your prompt is. Find the line that looks like this: ; define myprompt {cunixf: } Remove the ";" (semicolon) comment indicator, and change "cunixf: " to whatever your prompt is (leave the curly brackets), for example: define myprompt {unix> } If you don't want to type your user ID each time, add a line immediately below "define myprompt" like this: define userid abc123 where "abc123" is your user ID. But please, DO NOT put your password in this or any file. You should always enter it every time you log in. If you password is in the INFO.SCR file, anybody can walk up to your PC and access your private data -- they can read it, change it, or delete it. [End of INFO.DOC]