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

    Php-shell in 1.2.3-rc3 – is it here?

    Scheduled Pinned Locked Moved 1.2.3-PRERELEASE-TESTING snapshots - RETIRED
    4 Posts 2 Posters 3.0k 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.
    • V
      VitRom
      last edited by

      1.2.3-rc3 "official" (not snapshot), pc ondisk install. Found "Working with php shell" on wiki and immediately tried topmost samples (just copypasted):

      Enter an option: 12
      
      Starting the pfSense shell system...............
      
      Welcome to the pfSense php shell system
      Written by Scott Ullrich (sullrich@gmail.com)
      
      Type "help" to show common usage scenarios.
      
      pfSense shell: print_r($GLOBALS['config']['interfaces']);
      pfSense shell: print_r($GLOBALS['config']);
      pfSense shell: quit
      
      *** Welcome to pfSense 1.2.3-RC3-pfSense on gate ***
      

      Where is output?! What's wrong (both on tty0 and ssh)?

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        You need to type "exec;" to execute the code.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • V
          VitRom
          last edited by

          Thank U very much, it works.

          JFYI: here is NO ONE string "exec;" on mentioned wiki page and all samples looks like it works immediately after CR (like  in std console)

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            I updated that page. The information it had was very, very out of date.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

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