• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 Nov 21, 2009, 8:53 PM

    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
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Nov 22, 2009, 12:59 AM

      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 Nov 22, 2009, 5:06 PM

        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
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Nov 22, 2009, 6:50 PM

          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
          1 out of 4
          • First post
            1/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received