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

Curl not working?

Discussion in 'Tomato Firmware' started by tahayassen, Dec 24, 2013.

  1. tahayassen

    tahayassen Reformed Router Member

    I keep getting this error when I try to use curl:

    Code:
    curl: line 1: syntax error: unexpected "("
    Here is the command I run:

    Code:
    sh curl -d ResetReq=1 http://192.168.100.1/goform/RgConfig
    I tried the same command without "sh" at the front, but I get permissions denied error.

    I tried the static binaries from https://www.lancethepants.com/files/ and http://multics.minidns.net/tomato/PRECOMPILED-static/

    I get the same error even with the older versions of curl. Any help?

    I have curl downloaded via wget in /jffs
     
  2. lancethepants

    lancethepants Network Guru Member

    What router and firmware are you using?
     
  3. tahayassen

    tahayassen Reformed Router Member

  4. lancethepants

    lancethepants Network Guru Member

    Possibly your binary has not been set executable
    Code:
    chmod +x ./curl
    
    If you use my binary, you may want to throw in '-4' in your arguments too. With the newest 7.34.0, if you enable IPv6 at compile time (I did), it seems to hiccup if you don't have IPv6 enabled in the router.

    From their changelog
    Code:
    Add "Happy Eyeballs" for IPv4/IPv6 dual connect attempts.
    
    I don't like this, it will just hang and not do anything.
     
  5. tahayassen

    tahayassen Reformed Router Member

    Sweet, using chmod worked:

    Code:
    chmod +x ./curl
     

Share This Page