Menu

Syntax error in script

Help
remon D
2012-07-18
2016-02-21
  • remon D

    remon D - 2012-07-18

    hello,

    I have an error when the script is running:

    /etc/solget.sh: 147: Syntax error: "(" unexpected (expecting "}")

    this is row 147 of the script: data=(od -b -v $OUT | sed -e 's/^*//g' | sed -e 's/\(\)/ 0\1/g')

    i think this is good, perhaps it is in the row before but i didn't change
    anything in the script,

    can someone help me??

     
    • Anonymous

      Anonymous - 2014-03-31

      Hi remon D

      I know it's almost 2 years later but did you ever found a solution? I have run into the same problem and struggeling to find a solution on the internet... Cheers

       
      • mistraller

        mistraller - 2016-01-18

        Check interpreter; You should run this script with BASH. Check if the following points to your local bash install.
        #!/etc/bash

         

        Last edit: mistraller 2016-01-18
  • mistraller

    mistraller - 2016-02-21

    Do not run the script with "sh solget.sh", this will force the interpreter to be set on SH. (instead of BASH). SH is not compatible with array-variables, these are required for Solget. Please set permissions and execute bit correctly for solget.sh and run solget with: "/path/solget.sh"

     

Log in to post a comment.

MongoDB Logo MongoDB