1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Run .sh via Browser-HTTP in /ext/*.sh

Discussion in 'Tomato Firmware' started by darkknight93, May 1, 2013.

  1. darkknight93

    darkknight93 Networkin' Nut Member

    Good Afternoon,

    one question: How is it possible to run a .sh script via requesting the file via http-Browsers?
    I have installed v108 Shibby mod on my Asus RT-N66U ;)

    Here's the deal:
    I've created "run.sh" in /www/ext/ and open this file inside my browser it prompts:

    /tmp/.wxX8BDde: line 5: ./ext/run.sh: Permission denied


    via chmod +x or chmod 777 i get:

    /tmp/.wxX8BDde: line 5: ./ext/run.sh: Not found.


    I somehow got it to work with filename "gtemp.sh" but due i deleted that file, I'm no longer sure what did the trick and let me run the sh file...
    Has anyone an idea howto? Thanks in advance!
     
  2. shibby20

    shibby20 Network Guru Member

    i created new file in /www/ext/test.sh

    Into file i wrote:
    permission:
    chmod +x /www/ext/test.sh

    And finally:
    http:/192.168.1.1/ext/test.sh

    Result:
    Linux RT-N66U 2.6.22.19 #2 Sat Mar 2 20:51:55 CET 2013 mips GNU/Linux

    Best Regards.
     
  3. jerrm

    jerrm Network Guru Member

  4. shibby20

    shibby20 Network Guru Member

    IMO first line of file has to be
    #!/bin/sh

    without this file will/may not to be executed.
     
  5. darkknight93

    darkknight93 Networkin' Nut Member

    Many many thanks! :) I'll give it a shot!
     
  6. darkknight93

    darkknight93 Networkin' Nut Member

    [Anakin Skywalker voice ON]It's working! IT'S woorking![off]

     

Share This Page