Skip to content
Autana Business Partners

Run a process in Siebel with a Cron

Published on 1 min read

Unix terminal illustration executing cron job in Siebel environment

One way to develop a functional requirement that the system perform a daily validation to check something and depending on this result, perform some specific action (such as creating an activity), could be with a unix cron.

It is a very simple way to execute a process with the periodicity that we indicate and in which we will give as input parameters the date in question and a .sh file that contains what we want to execute.

Visual flow of automated execution in Siebel using cron and script

The cron is an OS process (a daemon) that is running in the background and is configured as follows:

* * * * * * fichero.sh

where each asterisk corresponds to time: minute - hour - dia_mes - month - dia_semana - user (optional) and command or script

The file .sh what it has is basically a call to the WF (where all the logic will be to check what we want and then perform the action we indicate) by command line from the server manager (srvrmgr), indicating the parameters of gateway, enterprise, siebel server, user, pass and the component we want to execute, in this case the WfProcMgr, in the parameter with ProcessName we must specify the name of our workflow.

Text editor showing cron setup to execute Siebel processes

So, to develop our solution, it will be enough to configure the crontab file and include a line like this:

01 6 * * * * Mi_archivo.sh

This line tells the crontab to run the Mi_archivo.sh file at 6 a.m. at 1 a.m. every day.

Do not forget to give the necessary permissions to the sh file so that it can be executed.

Updated on

Tags

← Back to the blog

  • Data Management

    Optimization of energy consumption

    Discover how the optimization of energy consumption reduces costs and environmental impact. Learn to analyze data, simulate scenarios, and implement energy-saving strategies.

    Read article

  • Analytics

    Talent retention in the digital age: how analytics can help

    Learn how talent retention in the digital age benefits from analytics. Discover how data helps reduce turnover and retain your top employees.

    Read article

  • Success Stories

    Proyect Sourcing Optimization

    In the digital age, Project Sourcing Optimization has become essential for companies aiming to enhance their purchasing processes. By integrating data-driven decision-making and…

    Read article