KB Article #72206

"Error while executing the command line" for scripts executed through Decision Rules

Problem

-- In high load conditions the following error can be observed in Gateway log:
20110823 110630 054 JCT   I CMDSUBM   [X0001291] Batch command [/tmp/test.sh] submitted with pid 4032
20110823 110630 053 JCT   I CMDTERML  [X0001291] Batch command [/tmp/test.sh] pid 4032 completed (exited with status 0)
20110823 110618 694 NOTE  E XEND_CF   [1291] Error while executing the command line /tmp/test.sh
-- How to overcome this error?


Resolution

* This is typically caused by the Gateway/Environment configuration and especially by the maximum number of simultaneous activated scripts (for routed commands).



* To solve this:
1. Increase the number of simultaneous activated scripts for routed commands.
The exemple bellow sets this limit to 50 simultaneous scripts:



>gatestop
>peluconf standalone get -s monitor job_max started_command_user_control
>peluconf standalone set -s monitor started_command_user_control yes
>peluconf standalone set -s monitor job_max 50
>peluconf standalone rebuild -f
>gatestart



and



2. Specific for Unix systems: check the Gateway Configuration Guide (to optimize the IPCs configuration)