[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] execute external command only if download occurs with time st
From: |
Kamenik, Aleksander |
Subject: |
[Bug-wget] execute external command only if download occurs with time stamping |
Date: |
Wed, 20 Oct 2010 12:34:51 +0100 |
Hi,
I periodically download a file with "wget -N someurl". I want to execute some
external program to process the downloaded file, but only when wget actually
downloaded a new version of it.
I'm using time stamping and wget always exits with zero if it could contact the
server. So I can't use "wget -N someurl && somescript.sh", this would always
execute the program.
Currently I use the -nv switch and then count lines of stderr+stdout and if
it's 1, then execute the script.
Is there a better way, something like find's --exec?
Wget version 1.11.4 on linux.
Regards,
Aleksander Kamenik
System Administrator
Krediidiinfo AS
an Experian Company
Phone: +372 665 9649
Email: address@hidden
- [Bug-wget] execute external command only if download occurs with time stamping,
Kamenik, Aleksander <=