This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Log Monitor - Used to monitor the size of a logfile | |
| # Will truncate log file if it gets too large | |
| # Start of script | |
| # Set max size of logfile here, in bytes. Default = 1 Megabyte | |
| MAXSIZE="1048576" | |
| # Delete this file if you want script to stop running | |
| RUNFILE="/tmp/log_monitor" | |
| touch "$RUNFILE" |