質問

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.

役に立ちましたか?

解決

You can do it using the following command:

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

他のヒント

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top