Start Script Command to Wipe/Delete Logs

Discussion in 'Server & Community Management' started by CCT, Aug 18, 2013.

  1. CCT

    CCT
    Supporter

    Is there a startup command to automatically purge the server.log? If so, please post an example startup script.
     
  2. You could just add this in your script
    Code (Text):
    rm -f file
     
  3. CCT

    CCT
    Supporter

  4. LiLChris

    LiLChris Retired Moderator
    Retired

    Why not use something like this?


    Keeps 3 logs, and rotates it.
    Removes colors from the log.