문제

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