wget ip update is giving ...
wget ip update is giving "can't open update?... : File exists"
- Casa
- Pannello di controllo
- Forum della Comunità
- Services
- Dynamic DNS Service
- wget ip update is giving "can't open update?... : File exists"
- Forum della Comunità
- wget ip update is giving "can't open update?... : File exists"
Argomento: wget ip update is giving "can't open update?... : File exists"
di Daniel Santos su domenica 23 aprile 2017
I'm using ddns to my home server and I want to update my ip using wget on my crontab.
For that I have a command on my crontab that is of the form:
*/5 * * * * sleep 15; wget "http://api.dynu.com/nic/update?username=USERNAME&password=MD5PASSWORD" . But I have notice that when I run the wget command the second time I get the a error:
"wget: can't open 'update?username=alexandre1985&password=pass': File exists".
1) Why does this happen?
2) What is the proper way of doing a wget from cron so it doesn't appear any error like this one?
Thank you
Daniel Santos
For that I have a command on my crontab that is of the form:
*/5 * * * * sleep 15; wget "http://api.dynu.com/nic/update?username=USERNAME&password=MD5PASSWORD" . But I have notice that when I run the wget command the second time I get the a error:
"wget: can't open 'update?username=alexandre1985&password=pass': File exists".
1) Why does this happen?
2) What is the proper way of doing a wget from cron so it doesn't appear any error like this one?
Thank you
Daniel Santos
Rispondi con citazione |Segnalare
di rahsharma su domenica 23 aprile 2017
[quote=Daniel Santos]I'm using ddns to my home server and I want to update my ip using wget on my crontab.
For that I have a command on my crontab that is of the form:
*/5 * * * * sleep 15; wget "http://api.dynu.com/nic/update?username=USERNAME&password=MD5PASSWORD" . But I have notice that when I run the wget command the second time I get the a error:
"wget: can't open 'update?username=alexandre1985&password=pass': File exists".
1) Why does this happen?
2) What is the proper way of doing a wget from cron so it doesn't appear any error like this one?
Thank you
Daniel Santos[/quote]Could you try using the -N parameter because that would allow it to overwrite the file which was downloaded the first time. Alternately, you could use the -nc parameter which would perform the HTTP request but not really download any existing file.
For that I have a command on my crontab that is of the form:
*/5 * * * * sleep 15; wget "http://api.dynu.com/nic/update?username=USERNAME&password=MD5PASSWORD" . But I have notice that when I run the wget command the second time I get the a error:
"wget: can't open 'update?username=alexandre1985&password=pass': File exists".
1) Why does this happen?
2) What is the proper way of doing a wget from cron so it doesn't appear any error like this one?
Thank you
Daniel Santos[/quote]Could you try using the -N parameter because that would allow it to overwrite the file which was downloaded the first time. Alternately, you could use the -nc parameter which would perform the HTTP request but not really download any existing file.
Rispondi con citazione |Segnalare
| Autore | Argomento: wget ip update is giving "can't open update?... : File exists" |
|---|---|
|
Daniel Santos Iscritto: 19/12/2016 |
domenica 23 aprile 2017 04:09
I'm using ddns to my home server and I want to update my ip using wget on my crontab.
For that I have a command on my crontab that is of the form: */5 * * * * sleep 15; wget "http://api.dynu.com/nic/update?username=USERNAME&password=MD5PASSWORD" . But I have notice that when I run the wget command the second time I get the a error: "wget: can't open 'update?username=alexandre1985&password=pass': File exists". 1) Why does this happen? 2) What is the proper way of doing a wget from cron so it doesn't appear any error like this one? Thank you Daniel Santos |
|
rahsharma Iscritto: 25/11/2010 |
domenica 23 aprile 2017 19:48
[quote=Daniel Santos]I'm using ddns to my home server and I want to update my ip using wget on my crontab.
For that I have a command on my crontab that is of the form: */5 * * * * sleep 15; wget "http://api.dynu.com/nic/update?username=USERNAME&password=MD5PASSWORD" . But I have notice that when I run the wget command the second time I get the a error: "wget: can't open 'update?username=alexandre1985&password=pass': File exists". 1) Why does this happen? 2) What is the proper way of doing a wget from cron so it doesn't appear any error like this one? Thank you Daniel Santos[/quote]Could you try using the -N parameter because that would allow it to overwrite the file which was downloaded the first time. Alternately, you could use the -nc parameter which would perform the HTTP request but not really download any existing file. |
venerdì 19 giugno 2026 07:02
