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

    Pfsense shell not complete or wrong? csh? shell not working as expected

    Scheduled Pinned Locked Moved Development
    3 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.
    • C
      cat1510
      last edited by

      Hi Developer,

      is here the right place to ask a question about shell?
      What shell is pfsense using?

      I wrote a simple script but there is no equal operator.
      Operators tested: == | = | -eq
      All things I found that its a csh shell but nor reacting as one.
      Is there a possibility to install another shell or what am I doing wrong?

      [2.1.4-RELEASE][root@bwrouter1.bwrez.de]/tmp(44): ./test.sh
      + vnstat -u
      + date +%H
      + LASTHOUR=18
      + vnstat -h
      + tail -n 3
      + awk '-F ' '{ print $7 }'
      + grep -w 18
      + [ -eq 18 ]
      [: -eq: unexpected operator
      + exit
      [/code]
      
      THX
      
      CAT
      
      1 Reply Last reply Reply Quote 0
      • C
        cat1510
        last edited by

        plz delete. fixed.
        was my fault of course in the code before.

        sorry for disturbing.

        CAT

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          It's tcsh in case you haven't found that by now.

          Steve

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