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

Shellcmd and complex command

Scheduled Pinned Locked Moved General pfSense Questions
2 Posts 2 Posters 1.3k 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.
  • W
    whites07
    last edited by Sep 12, 2012, 10:33 AM

    Hi all,
    I installed shellcmd and I set up some commands that pfsense runs at boot time: everything is working well.
    Now I would like to run some other command that is a little bit more complex: there is an if..then..else condition; I tried to use both bash style and tcsh style command but it didn't work; of course when I run the same command manually it works.

    Any suggestion?

    Thanks

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Sep 12, 2012, 12:34 PM

      Put that code inside an actual script somewhere and then call it. Not as nice as a shellcmd, but shellcmd wasn't really designed to handle those sorts of commands.

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