Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    no shebang error

    Developers
    3
    3
    1670
    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.
    • afisher
      afisher last edited by afisher

      Hello,

      I have been using the HaxWithFlic app for my mac and am having issues with bash, ruby, and python scripts. For some reason, even executable scripts, are reporting a missing shebang. These scripts run in Terminal but not HaxWithFlic.

      Here is the bash.

      curl --request PUT
      --url URLHERE
      --header 'cache-control: no-cache'
      --header 'content-type: application/json'
      --data DATA HERE

      1 Reply Last reply Reply Quote 0
      • wazzamagoo
        wazzamagoo last edited by

        Hi, I am having the same problem running applescripts. The Shebang is present and on the first line. The script runs outside of HaxWithFlic just fine but I get the Shebang error when using the flic.
        Does anyone know how to fix this?

        W

        1 Reply Last reply Reply Quote 0
        • anton
          anton FlicTeam last edited by

          Hello, I just want to make sure that we are on the same page here. Do you know what a shebang is? In the script that you posted here you have not added that. A shebang is something that you put on the very first line in a script file. The purpose of this is to let the executor (hax-with-flic in this case) know where the script should be executed. This could for example be:

          #!/usr/bin/osascript

          This lets hax-with-flic know that the contents of this script file should be run using the program "osascript" located at /usr/bin/. Take a look at one of my example scripts.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post