Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Expect scripting in pfsense not working

    Scheduled Pinned Locked Moved Development
    2 Posts 2 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      amit61078
      last edited by

      Hi Everyone  :)

      I am tring to execute expect script command using the pfsense shell, but it gives messages:

      spawn: not found
      expect: not found
      send: not found

      Can anybody suggest me how to work this.

      1 Reply Last reply Reply Quote 0
      • JeGrJ Offline
        JeGr LAYER 8 Moderator
        last edited by

        Hi Amit,

        first, welcome to the forums, but this is the Feedback forum, meant for feedback to the forums staff and pfSense in general. This is NOT a bug/feature/ask-any-problem forum. That would be "General Questions".
        Second, those binaries aren't shipped with the default installation of pfSense as those aren't needed anywhere and pfSense is stripped down to the necessary tools. As I don't know what you are trying to do with those (as there are other mechanisms to read out data), I can't point to anything specific but things like expect scripts have a big tendency to blow up in your face if there are even slight alterations to the CLI or shell you are expecting. And as there is a big step up ahead (pfSense 2.1 -> 2.2) I would rather look into other ideas to get the output you want with tools provided.

        Greets

        Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

        If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.