I know in Linux you can just do a 'cat /dev/ttyS0 > /var/log/ttyS0' and it would put any data received on COM1 into /var/log/ttyS0 or whatever file you choose to use. You could maybe try that and see if that does what you need it to do. If you would prefer not using shell commands you can take a look at http://www.aplawrence.com/Unix/logger.html for a perl program that does the same thing or http://www.linespeed.net/screens/howtos/c/get.c for some sample C code on how to do the same thing.
Cheers, -- Personal: Trevor Lauder Web: http://www.thelauders.net E-Mail: [EMAIL PROTECTED] Work: Trevor Lauder Technical Services Specialist Wireless Networks Inc. Web: http://www.wirelessnetworksinc.com E-Mail: [EMAIL PROTECTED] timmy said: > There is a phone system at my work, wuth an ACD. This ACD logs all of the > calls that com into the 800 number, as well as keeps track of who logs in > and out of the > ACD and at what times. I can have it programmed so the phone system spits > out the logged information to a printer attached to the serial port of the > unit. What I'd > like to do is to take the output from the phone system, and instead of it > going to a printer, have it log to the serial port of another UNIX/Linus > system. This will allow > me to manipulate the data, provide reports, stats, etc. We have solaris > there, which I'd prefer to use, but if need be, I'll use Linux if it's > easier. The SUN servers > have console ports on them, so it's no big deal to plug in a rollover > cable. > > What I'm wondering is how I would actually approach this. I don't really > know where to even start. Does anyone have any suggestions as to how this > can be done, > or even where I may look for some kind of program or script (i.e > sourceforge or freshmeat) that could help with this. The overall concept > seems simple enough, it's > just using the proper approach which is comfusing me. > > TIA! > > > >
