Pregunta

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.

¿Fue útil?

Solución

You can do it using the following command:

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

Otros consejos

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 bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top