Hi,
i want to truncate the log file which is already in use ( log is getting appended) . After that i want to make sure log is still getting appeneded after performing truncate. I have been using below command for the same but don't see it is happening.
truncate -s 0 rosout.log
i belive it should truncate the log file contents and after that append the new one.
even it will be helpfull if i can specify how many contents i would be able to truncate.
truncate -s 1M rosout.log