specter@disk.uucp (Byron Max Guernsey) (06/08/91)
Again, I am looking for programmer input on the easiest way to redirect a programs I/O (called from another program) so that it may be monitored for loss of carrier, etc and can go through ANY serial port setup. Redirecting output is a sinch, but for it to actually work with any program I need to be able to redirect input too and monitor it (or continually check the carrier) If I cannot do this, I may instead make the program used a shared library of commands for serial i/o on a designated port. It all boils down to a pain in the butt. :) Its a shame amigas don't have more support and libraries for terminal i/o. Are there any PD libraries?? Byron PS: I can't use AUX: or SER: so don't suggest them on any level. -- / /\ \/ \ /\ |---| /\ / \ |---| /O---------------------------O / / \/ /\ /_/ \_| |-------------------| | / |The Legendary City of Frore| \/ \/\/ \/ /\ \| |/\_______n__/\/\__/\ |/\/ O---------------------------O \ \ \ / \ /-/ \/\__/\/\/ \ \/ \/specter@disk.UUCP Byron Guernsey
elg@elgamy.RAIDERNET.COM (Eric Lee Green) (06/11/91)
From article <1991Jun08.061624.975@disk.uucp>, by specter@disk.uucp (Byron Max Guernsey): > Again, I am looking for programmer input on the easiest way to redirect > a programs I/O (called from another program) so that it may be monitored > for loss of carrier, etc and can go through ANY serial port setup. > > Redirecting output is a sinch, but for it to actually work with any > program I need to be able to redirect input too and monitor it (or > continually check the carrier) I have a RS232 server which uses Matt Dillon's FIFO: device to re-direct I/O from the console to the server. I start it up from an AREXX program, which then re-directs its STDIN/STDOUT to the FIFO: pipes served by the server. The server does asynchronous reads on its side of the FIFO: pipes. When carrier is lost, it closes its end of the FIFO: pipes, thus sending an EOF to the program at the other end, and voila! It also handles un- freezing the serial device when you get a ^S without getting a ^Q. It also opens its own window that shows everything going in and out of the serial port... i.e., its own virtual "console". Things you type there appear as if they'd been typed from RS232. I'm not finished with it yet, there's still a couple of things I need to do with it, but it works currently. I've run normal console-based programs with no problem. Makes for a real nifty way of writing a BBS! Note that only V3.1 of FIFO: works right (recently released by Matt on BIX). If you'd like a copy, drop me a line and I'll either EMAIL it or tell you that you're about the fiftieth person to request it and I can't afford the phone bill :-). -- Eric Lee Green (318) 984-1820 P.O. Box 92191 Lafayette, LA 70509 elg@elgamy.RAIDERNET.COM uunet!mjbtn!raider!elgamy!elg