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

    Expect scripting in pfsense shell not working

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    2 Posts 2 Posters 1.2k 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
      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
      • I
        italics
        last edited by

        A shot in the dark.. but did you install expect? Also invoke it as the shell you are using in the script? (have the #!/usr/bin/expect at the top of the script)

        If both of those are answered with yes, would you mind posting a) the version of pfsense b) the script you are trying to run c) expect version ? Thankie. :D

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