OS2 World.Com Forum
2012.02.09, 16:59:17 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to monitor serial port in REXX?  (Read 2080 times)
Fahrvenugen
Full Member
***
Posts: 198


View Profile
« on: 2010.01.21, 23:13:56 »

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.
Logged
Andi
Full Member
***
Posts: 229


View Profile
« Reply #1 on: 2010.01.22, 21:14:47 »

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.       
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.14 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!