Issue with wget...
Moderator: Moderators
Issue with wget...
I am using a 'custom' DNS service that requires me to keep their system updated with my current WAN IP (I have a dynamic IP). This can be done manually with a web link but they also provided a line to add to the crontab for DDWRT... to automate the update.
I assumed this should work also for Gargoyle, got WinSCP, was able to find the root file and add
0 * * * * root wget http://unlo.it/Your_API_KEY_HER
rebooted router but it didn't work.
I then opened a console and issued the wget command... got the following response
Failed with return code 1 and error message
/etc/crontabs$ wget http://unlo.it/<API Key Deleted>
Connecting to unlo.it (95.211.39.42:80)
wget: not an http or ftp url: https://unlocator.com/tool/api.php?api_key=<Deleted>
Any idea what the issue might be?
Thanks.
I assumed this should work also for Gargoyle, got WinSCP, was able to find the root file and add
0 * * * * root wget http://unlo.it/Your_API_KEY_HER
rebooted router but it didn't work.
I then opened a console and issued the wget command... got the following response
Failed with return code 1 and error message
/etc/crontabs$ wget http://unlo.it/<API Key Deleted>
Connecting to unlo.it (95.211.39.42:80)
wget: not an http or ftp url: https://unlocator.com/tool/api.php?api_key=<Deleted>
Any idea what the issue might be?
Thanks.
Re: Issue with wget...
I'm not too familiar with wget, however I know gargoyle doesn't install the full version of it.
You can opkg update and then opkg install to try and get the full version.
That's a complete guess though.
You can opkg update and then opkg install to try and get the full version.
That's a complete guess though.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
Please be respectful when posting. I do this in my free time on a volunteer basis.
Re: Issue with wget...
Looks like that short URL expands to an HTTPS address and the Gargoyle wget was apparently not compiled with SSL support.
Does the URL work if you drop the 's''? If so, use that. But I would imagine it's a redirect on their side from HTTP to HTTPS since you initially connect on :80
Does the URL work if you drop the 's''? If so, use that. But I would imagine it's a redirect on their side from HTTP to HTTPS since you initially connect on :80
Re: Issue with wget...
The web address you use manually is also http: so I suspect as you say the site must make that change.
Afraid I'm ignorant on DD-WRT and how I might address this problem with wget. Any suggestions where I might go to learn how?
How risky is it (ie possibility to brick my router)...
Thanks.
Afraid I'm ignorant on DD-WRT and how I might address this problem with wget. Any suggestions where I might go to learn how?
How risky is it (ie possibility to brick my router)...
Thanks.
Re: Issue with wget...
You never mentioned what router you have? But with plenty of space, installing the ssl version of wget is going to take 30 seconds following my instructions from earlier.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
Please be respectful when posting. I do this in my free time on a volunteer basis.
Re: Issue with wget...
Its a TP-Link Archer A7, so think memory shouldn't be an issue.
Didn't realize it was that simple... I just enter those commands in a Telnet session? Nothing to download first?
Thanks.
Didn't realize it was that simple... I just enter those commands in a Telnet session? Nothing to download first?
Thanks.
Re: Issue with wget...
At an ssh prompt, not telnet. But yea.
opkg update
opkg install wget --force-reinstall
Should get you SSL support.
opkg update
opkg install wget --force-reinstall
Should get you SSL support.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
Please be respectful when posting. I do this in my free time on a volunteer basis.
Re: Issue with wget...
Remarkably easy...
Was able to make the command work after this.
Thanks.
Was able to make the command work after this.
Thanks.
Re: Issue with wget...
...onto the next problem...
Realized eventually Cron isn't enabled by default on OpenWRT.
When I issue the start commend I get an error message saying 'uninteger - 9 = true'. Any idea why that should happen?
THanks.
Realized eventually Cron isn't enabled by default on OpenWRT.
When I issue the start commend I get an error message saying 'uninteger - 9 = true'. Any idea why that should happen?
THanks.
Re: Issue with wget...
It should be enabled?
We use it all the time to schedule backups for bandwidth data.
How are you starting it?
We use it all the time to schedule backups for bandwidth data.
How are you starting it?
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
Please be respectful when posting. I do this in my free time on a volunteer basis.