Page 1 of 1
Do not append log file?
Posted: 31 Mar 2016, 05:02
by viking
Currently, when I write to a log file it appends the file if it exists.
Is it possible to overwrite the file instead?
Re: Do not append log file?
Posted: 31 Mar 2016, 06:41
by rednoah
No, but you can do an
rm /path/to/log in the script that calls filebot.
EDIT:
del on Windows
Re: Do not append log file?
Posted: 31 Mar 2016, 08:24
by viking
rednoah wrote:No, but you can do an
rm /path/to/log in the script that calls filebot.
EDIT:
del on Windows
Eh, you mean to simply delete the file before it is written again?
Re: Do not append log file?
Posted: 31 Mar 2016, 13:33
by rednoah
Pretty much. Do you have any objections with that?

Re: Do not append log file?
Posted: 31 Mar 2016, 17:39
by viking
rednoah wrote:Pretty much. Do you have any objections with that?

That will probably work. I had actually planned to do exactly that in my "Automate" script that runs the Filebot suball script.
I just wondered if there was a flag to overwrite the file rather than append so that a delete would not be needed..
No problem. I will delete the file instead (which will happen multiple times in a loop as I cycle through the shows)