Pergunta

I am running wget through cronjob for executing some script in scheduled manner. Everytime the output is downloaded and saved as new file. I want to append the output to same file. How can I do that?

I am talking about the downloaded content from the URL but not the log of the execution.

Foi útil?

Solução

You can do it using the following command:

   wget <URL> -O ->> <FILE_NAME>

Outras dicas

My first approach now would be to download it to a file, add the content of the new downloaded file to the previously downloaded file and delete it.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top