Truncate log files – WebCenter Content

Often times the log files in WebCenter Content get very long and difficult to debug. This has to do with how the logs are structured as HTM files (versus in a database). Thus, sometimes it is beneficial to truncate log files (for example when doing multiple Archiver imports). Below is a simple Linux script to run to truncate log files. Replace the path and file info with the log file you want to truncate (and be careful).

No comments yet Leave a Comment

Preventing duplicate cron job executions

Someone writes a script, creates a cron job to execute that script and the script works great, at first. Over time, something changes and the script either starts to take a long time to execute or never completes. The fact that the script never ends is one problem, the other problem is that scripts like the one above keep starting even though another instance of that same script is running.

In today’s article, we are going to cover ways to solve the second issue by preventing duplicate cron job executions.