Anyone know of any scriptable asynchronous communication tools?

The closest so-far appears to be Kermit. It’s been around since CP/M, but apparently there’s still no centralised language reference and the syntax predates Perl.

  • Onno (VK6FLAB)OP
    link
    3
    edit-2
    15 days ago

    No, it needs to be serial communication. My use case is talking to a CNC.

    Edit: fat fingers: “ea” -> “to a”

    • @catloaf@lemm.ee
      link
      fedilink
      English
      115 days ago

      So you’re just pushing ASCII over the wire? That’s such a simple scenario that you probably don’t even need a program for it. Reading and writing /dev/ttyS0 directly would be enough.

      If any scriptable terminals aren’t sufficient, you should be able to write a little custom one in your preferred language.

        • @catloaf@lemm.ee
          link
          fedilink
          English
          115 days ago

          Kermit, as you mentioned. You could probably use expect as well. But like I said, if the connection is simple but the conversation complex, you might just write it all yourself and save the time you’ll spend fighting Kermit or whatever to get it to do what you want.

      • Onno (VK6FLAB)OP
        link
        114 days ago

        That’s several recommendations for expect. I’ll start digging. Thank you.