Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Need to detect continuity between 2 terminals

by jmlynesjr (Pilgrim)
on Jan 06, 2013 at 21:17 UTC ( #1011920=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($PortObj->can_wait_modemlines) {
          $rc = $PortObj->wait_modemlines( MS_RLSD_ON );
          if (!$rc) { print "carrier detect changed\n"; }
    ...
         $ModemStatus = $PortObj->modemlines;
         if ($ModemStatus & $PortObj->MS_RLSD_ON) { print "carrier detecte
    +d\n"; }
      }
    
  2. or download this
    # controlling outputs from the port
      $PortObj->dtr_active(T);              # sends outputs direct to hard
    +ware
      $PortObj->rts_active(Yes);            # return status of ioctl call
                                            # return undef on failure
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011920]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (12)
As of 2014-04-17 18:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (453 votes), past polls