Hi,
This is a bit of an old thread but I struggled a bit to get a post-slice script done so I though I'd share my code.
For some reasons I could not make this work via a bash script, so I used python.
To run the code, you need something like this in the repetier
python /path/to/script/myScript.py #in #out
The python code I wrote removed fan management (my machine does not manage it):
import sys
fileIn = sys.argv[1]
fileOut = sys.argv[2]
with open(fileOut, 'w') as fo:
with open(fileIn, 'r') as fi:
for line in fi:
if (line[0:4] != 'M106') and <br/> (line[0:4] != 'M107'): # fan off
fo.write(line)