Frage

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.

War es hilfreich?

Lösung

You can do it using the following command:

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

Andere Tipps

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top