Expect scripting in pfsense shell not working



  • 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.



  • 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