gilles@disys.dis.incom.de (Gilles Kohl) (12/21/90)
The following KERMIT take-file allows remote controlling the HP48 from the host. (At least this works for PC KERMIT-MS Ver 2.23/A which I'm using). It was inspired by the C program recently posted by John Hoford. This solution is not as elegant and versatile, but may be useful for systems not supporting the pipe mechanism (such as PCs under MSDOS). Usage ----- Cut out the few lines below, save under the name of CONTROL (for example). Invoke KERMIT using the command line KERMIT TAKE CONTROL <grin>. Maybe insert some configuration commands before the 'loop:' label, if this is not already done via an init-file. You may alternatively choose to call KERMIT, and then (and after some initializations) enter TAKE CONTROL. You will be prompted for HP48 commands. Enter them in upper case. (Take care to appropriately set translation code on your HP48 first. I generally prefer 3, but this depends on your system, of course) After entering a command line (multiple commands on a line allowed), the entire resulting stack contents will be displayed. Try, for instance 1 10 FOR I I NEXT [RETURN] Abort the script by pressing <CTRL>-C (or whatever appropriate for your KERMIT version) Take-File --------- @ --- cut below this line :loop ASK \%c 48> REMOTE HOST \%c goto loop @ --- cut above this line Improve by adding commands interpreted by the KERMIT script itself, such as dir (REMOTE DIR) command, transferring files, cleaner termination ...