Gerard Seibert ha scritto:
I wrote a script that downloads new 'dat' files for my AV program. I am using the '-N' option to only download a newer version of the file. What I need is for 'wget' to issue an exit code which would indicate whether a newer file was downloaded or not. Presently I have the script comparing the time of the existing file and then the time of the file after 'wget' has finished running. It would be simpler if 'wget' simply issued an exit code.

I have tried various methods but have not been successful in capturing one if it does actually issue it. Perhaps someone might have some further information on this?

hi gerard,

unfortunately at the moment wget does not define a specific list of exit values according to program exit states. that's a major problem we'll have to fix in the next 1.12 release.

--
Aequam memento rebus in arduis servare mentem...

Mauro Tortonesi                          http://www.tortonesi.com

University of Ferrara - Dept. of Eng.    http://www.ing.unife.it
GNU Wget - HTTP/FTP file retrieval tool  http://www.gnu.org/software/wget
Deep Space 6 - IPv6 for Linux            http://www.deepspace6.net
Ferrara Linux User Group                 http://www.ferrara.linux.it

Reply via email to