Do not append log file?

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
viking
Power User
Posts: 128
Joined: 14 Jul 2013, 08:21

Do not append log file?

Post 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?
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Do not append log file?

Post by rednoah »

No, but you can do an rm /path/to/log in the script that calls filebot. ;)

EDIT: del on Windows
:idea: Please read the FAQ and How to Request Help.
viking
Power User
Posts: 128
Joined: 14 Jul 2013, 08:21

Re: Do not append log file?

Post 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?
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Do not append log file?

Post by rednoah »

Pretty much. Do you have any objections with that? :D
:idea: Please read the FAQ and How to Request Help.
viking
Power User
Posts: 128
Joined: 14 Jul 2013, 08:21

Re: Do not append log file?

Post by viking »

rednoah wrote:Pretty much. Do you have any objections with that? :D
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)
Post Reply