#!/bin/sh -e chatlog=/var/log/bunkchat/chat.log chattr -a $chatlog echo > $chatlog chattr +a $chatlog