Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Lower-Level Serial Port Access on *NIX

by haukex (Archbishop)
on Mar 01, 2017 at 15:07 UTC ( [id://1183290]=CUFP: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use IO::Termios ();
    
    ...
        print {$handle} "Three!\n" if /3/;
    }
    close $handle;
    
  2. or download this
      # connect the fake pty to a process that generates output
    $ socat pty,raw,echo=0,link=/tmp/fakepty \
    ...
    
      # connect the fake pty to the current terminal
    $ socat pty,raw,echo=0,link=/tmp/fakepty -,icanon=0,min=1
    
  3. or download this
    use Fcntl qw/:DEFAULT/;
    use IO::Termios ();
    ...
    }
    
    $handle->close;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://1183290]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found