LogManager - lm (Kickstart 37+ required in order to run!) --------------------------------------------------------- Finally I got tired of all these logfiles filling up my HD and wrote lm. What lm does is to pick a range from your logfiles and place it in another file located in t: The range can be selected either by date, filesize or number of lines. You can then archive (or throw away) your old logfile. lm is PD and you are using it at your own risk. It may not be sold for money, and this doc must be included when it is spread. Just type 'lm' to bring up the syntax : (opts are CASE-sensitive) lm (c) 1992, Niklas Sjöberg, 2:203/415.3@Fidonet lm dnn|lnn|snn LOG_FILE Output: t:lm_log.tmp Default (and hardcoded) output is ALWAYS t:lm_log.tmp and if an old file exists it will be erased. dnn Useful for logfiles from programs such as Trapdoor, Traptoss, Foozle etc. which produces lines in the form: 1 control-character ("!","~","|" etc.), one blank or tab and then a date in the form dd-mmm-yy (or dd-mm-yy) which is DOS default form. nn specifies how old lines you wish to keep, counted in days from the current date in your system (be sure to use setclock!). If the log contains lines with a date in another form, or no date at all they will be written to the destinationfile t:lm_log.tmp. lnn Specifies the number of lines you wish to keep. Of course the newest lines will be saved. nn may range from 1-... snn Specifies in bytes how large you want your new logfile to become. No consideration to "lines" are taken, so the file can be cut in the middle of some text. Mostly useful for floppy-users. You may only specify one of these options at the time. If an error occured or your logfile didn't need processing lm will abort and fail with errorcode 21 (If dos-error occured this will be printed using your selected language in locale). Typical script : lm d30 mail:TrapDoor.log ;Only keep one month of log. ; If log didn't need processing or an error occured the next lines ; will never be executed. lha u mail:Td_logs mail:TrapDoor.log Delete mail:TrapDoor.log copy t:lm_log.tmp mail:TrapDoor.log Users with very small HD's : lm l100 mail:TrapDoor.log delete mail:TrapDoor.log copy t:lm_log.tmp mail:TrapDoor.log Floppy-users : lm s5000 df0:TrapDoor.log delete df0:TrapDoor.log copy t:lm_log.tmp df0:Trapdoor.log