• Welcome to OS2World OLD-STATIC-BACKUP Forum.
 

News:

This is an old OS2World backup forum for reference only. IT IS READ ONLY!!!

If you need help with OS/2 - eComStation visit http://www.os2world.com/forum

Main Menu

How to monitor serial port in REXX?

Started by Fahrvenugen, 2010.01.21, 23:13:56

Previous topic - Next topic

Fahrvenugen

Hi,

I'm probably overlooking something very obvious, but I need to find a way to be able to monitor the status of the CTS line on the serial port from within a REXX script.  I've got an external device which will toggle this status, and I need to write a script to have a system do one thing if CTS is high, another if CTS is low.

Unfortunately I havn't found this yet.  Anyone know how to do this?  Again, its probably simple, and I'm just overlooking something.

Thanks.

Andi

There are REXX libraries like rexxasync (?) which most probably let you do what you like. But I never did such things in REXX. Another possibility will be to parse the output of the system command 'mode com1'. At least under 4os2 I see here the status of CTS. Not really sure but probably the standard command shell will do it too.