WebCenter Content is Oracle’s content management repository that provides metadata, searching, revisioning and security. WebCenter Content has a built-in workflow engine centered around content items. This workflow engine was originally developed by Stellent (who was acquired by Oracle).
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).
sudo sed -i 's/xenial/zesty/' /etc/apt/sources.list sudo apt-get update sudo apt-get dist-upgrade
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.