One of the most dreaded things when running a Hotline server is cleaning the news. I wrote the following script to automate that task. Most of it is set up as variables that can easily be changed for your set up. I have only tested it with the hxd server, however it should also work with a plain vanilla Hotline server. For adding it to cron, I suggest grabbing CronniX for easy editing.

Read the rest of the article for the script...

#! /bin/sh

############################################ Hotline News Cleaner v1 by James Huston ## Add this program to the cron system to ## auto clean your news file at specified ## times. ############################################

# CHANGE THESE VARIABLES FOR USE ON YOUR SYSTEM #hxdpath=/Users/hxd/ #path to the hxd server rootnewssize=30000 #size to act upon in bytesposts=3 #number of posts you want to keepnewsdelim="_________________________________________________" # the news delimitertdate=`date +%x | tr "/" "-"` #date formate for arcived files

The only way this would work with a plain vanilla Hotline server is if you had a OneClick or Quickkeys script that would press your 'Reload News' button or if you had said cron script kill the server app and re-launch it.