On Sun, Feb 13, 2011 at 10:15:09PM +0100, Rikard Bremark wrote: > Hi! > Anyone here that has any log-scripts for their hlds/srcds setups > that moves yesterdays logs to a folder with yesterdays date? > Windows/Unix
I personally think grep is nice for sorthing them on-request. If you want it to run once a day, crontab would probably work fine. crontab -e: 0 0 * * * cd /path/to/logs/ && mkdir "`date +%F`" && mv *.log "`date +%F`" Make sure crond is running. That will run daily at midnight system time and move all logs that were in that folder on that day into the folder it made (i.e. if you ran that command right now, you would probably get a folder called "2011-02-14"). I am unsure if srcds properly handles when a log file gets moved or renamed, so you might want to be aware of that. Don't have time to check right now. _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux

