OS2 World.Com Forum
2010.08.01, 13:10:24
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
OS2 World.Com Forum
>
OS/2 - SIGs
>
Rexx
>
How to monitor serial port in REXX?
Pages: [
1
]
« previous
next »
Print
Author
Topic: How to monitor serial port in REXX? (Read 1154 times)
Fahrvenugen
Full Member
Posts: 169
How to monitor serial port in REXX?
«
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: 160
Re: How to monitor serial port in REXX?
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
WebSite Information
-----------------------------
=> Article Discussions
=> Comments, Suggestions & Questions
-----------------------------
OS/2 - General
-----------------------------
=> Events
=> Marketplace
=> Polls
-----------------------------
OS/2 - Technical
-----------------------------
=> Applications
=> Communication
=> Games
=> Hardware
=> Internet
=> Mail-News
=> Multimedia
=> Networking
=> Programming
=> Setup & Installation
=> Utilities
=> Web applications
=> Storage
-----------------------------
OS/2 - SIGs
-----------------------------
=> Abandonware
=> CW-Multimedia
=> Doodle's ScreenSaver
=> Emulators
=> Hobbes Archive
=> ODIN
=> OS2 Petition
=> Rexx
=> Security
=> Socket Service
=> USB
=> XFree86
-----------------------------
OS2 World.Com Bounty System
-----------------------------
=> General Discussion
=> Open Bounties
=> Claimed Bounties
=> Development
-----------------------------
User Groups
-----------------------------
=> OS2 User Groups
=> OS2 User Group Denmark
=> OS2 User Group Germany
=> OS2 User Group Sweden
=> OS2 User Group Southern Europe
-----------------------------
Public Discussions
-----------------------------
=> General Advertisements
=> General Discussion
=> Off Topic discussions
Loading...