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.

  • Lodra@programming.dev
    link
    fedilink
    English
    arrow-up
    3
    ·
    7 months ago

    Uh email? It’s not exactly exciting but there are loads of tools available for automating emails. Definitely asynchronous. Does it fit your needs?

    • Onno (VK6FLAB)OP
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      7 months ago

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

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

        • Onno (VK6FLAB)OP
          link
          fedilink
          arrow-up
          1
          ·
          7 months ago

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

      • catloaf@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 months 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
            arrow-up
            1
            ·
            7 months 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.