Here is a rough Unidata routine that will wait for input and act on it
every 3 seconds.  Hope this helps.
 
00001: *-----------------------------------------------
00002:    PROMPT ""
00003:    LOOP WHILE 1
00004:       IF SYSTEM(14) THEN
00005:          LGTH=SYSTEM(14)
00006:          INPUT B,LGTH
00007:          PRINT "B = ":B
00008:         *---- DO SOMETHING WITH B ----*
00009:       END
00010:       SLEEP 3
00011:    REPEAT
00012: END

________________________________

From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Wednesday, June 10, 2009 4:11 PM
To: [email protected]
Subject: [U2] Input from a TTY on an AIX box



Howdy all!

 

We're doing a proof of concept where we're connecting a serial scanner
to a wireless termserver and we want to get the input from the scanner
into our U2-based software.

 

We've got the tty defined and we can open the port.  The stickler is in
writing a routine (in BASIC preferably, but unix script would be okay
too) that will monitor the open tty and input any data whenever
something is scanned at the scanner.

 

Has anyone done anything similar that could point me in a direction?

 

Thanks!!

Brian





_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material not intended for Public use.  
Any review, retransmission, dissemination or other use of, or taking of
any action in reliance upon, this information by persons or entities
other than the intended recipient is 
strictly prohibited. If you received this communication in error, please
notify the sender and delete the material from any and all computers or
devices.        

______________________________________________________________________
This e-mail has been scanned by MCI Managed Email Content Service, using
Skeptic(tm) technology powered by MessageLabs. For more information on
MCI's Managed Email Content Service, visit http://www.mci.com.
______________________________________________________________________


______________________________________________________________________
This e-mail has been scanned by MCI Managed Email Content Service, using 
Skeptic(tm) technology powered by MessageLabs. For more information on MCI's 
Managed Email  Content Service, visit http://www.mci.com.
______________________________________________________________________
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to