How to get low level UNIX socket calls executed through perl?

Solution Unverified - Updated -


  • There is a perl script written to communicate with serial port using cu command.
  • Its required to close the serial port in order to open another session using ~. command to end the port connection but it fails to do that.
  • How can one get low level UNIX socket calls executed in such condition?


  • Red Hat Enterprise Linux 6.4
  • perl

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content