Posted: Wed Dec 10, 2003 6:00 pm Post subject: Trigger Monitor housekeeping how??
Newbie
Joined: 18 Nov 2003 Posts: 9
I am currently running a trigger monitor using 'nohup' command so all the output will be directed to a file. My problem is how to housekeep the outputed file properly. The trigger monitor is running 24hrs a day, 7 days a week.
Joined: 16 May 2001 Posts: 668 Location: Switzerland
here's one way to do it - write a cron job that every night does a "tail -500" (or whatever number of lines that takes your fancy) on the output file and redirect it to another file. Then "cat" it back into the original file:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum