{"id":3639,"date":"2019-02-12T16:09:32","date_gmt":"2019-02-12T16:09:32","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/usage-help-manual\/10-test-scheduler\/exec_script\/"},"modified":"2025-11-19T12:45:40","modified_gmt":"2025-11-19T17:45:40","slug":"exec_script","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/12-test-manager\/exec_script\/","title":{"rendered":"exec_script"},"content":{"rendered":"<div>\n<h3>Purpose:<\/h3>\n<\/div>\n<dl>\n<dd>\n<p>Execute a specified script file in response to a start event from gp_test and return the script&#8217;s exit status to indicate success or failure.<\/p>\n<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>exec_script<\/strong> &lt;prio&gt; &lt;strt_evnt&gt; &lt;stp_evnt&gt; &lt;reply_evnt&gt; &lt;proc_num&gt; &lt;mode_num&gt; &lt;call_proc&gt; &lt;script_file&gt; [arg1] [arg2]&#8230;<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl>\n<dd>\n<div>\n<table style=\"width: 87.5333%; height: 550px;\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col \/>\n<col \/> <\/colgroup>\n<tbody>\n<tr style=\"height: 55px;\">\n<td style=\"width: 11.8283%; height: 55px;\">\n<p>prio<\/p>\n<\/td>\n<td style=\"width: 147.558%; height: 55px;\">\n<p>Specify the task priority.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 55px;\">\n<td style=\"width: 11.8283%; height: 55px;\">\n<p>strt_evnt<\/p>\n<\/td>\n<td style=\"width: 147.558%; height: 55px;\">\n<p>Specify the start event name.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 55px;\">\n<td style=\"width: 11.8283%; height: 55px;\">\n<p>stp_evnt<\/p>\n<\/td>\n<td style=\"width: 147.558%; height: 55px;\">\n<p>Specify the stop event name.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 55px;\">\n<td style=\"width: 11.8283%; height: 55px;\">\n<p>reply_evnt<\/p>\n<\/td>\n<td style=\"width: 147.558%; height: 55px;\">\n<p>Specify the reply event name.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 55px;\">\n<td style=\"width: 11.8283%; height: 55px;\">\n<p>proc_num<\/p>\n<\/td>\n<td style=\"width: 147.558%; height: 55px;\">\n<p>Specify the procedure number. (not used)<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 55px;\">\n<td style=\"width: 11.8283%; height: 55px;\">\n<p>mode_num<\/p>\n<\/td>\n<td style=\"width: 147.558%; height: 55px;\">\n<p>Specify the mode number. (not used)<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 55px;\">\n<td style=\"width: 11.8283%; height: 55px;\">\n<p>call_proc<\/p>\n<\/td>\n<td style=\"width: 147.558%; height: 55px;\">\n<p>Specify the procedure that called the task. (not used)<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 55px;\">\n<td style=\"width: 11.8283%; height: 55px;\">\n<p>script_file<\/p>\n<\/td>\n<td style=\"width: 147.558%; height: 55px;\">\n<p>Specify the script file to execute.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 55px;\">\n<td style=\"width: 11.8283%; height: 55px;\">\n<p>arg1, arg2<\/p>\n<\/td>\n<td style=\"width: 147.558%; height: 55px;\">\n<p>Optional. Specify an additional argument(s) for the specified script_file.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/dd>\n<\/dl>\n<h3>Example:<\/h3>\n<dl>\n<dd>\n<p>@AUXILIARY_TASK AT_START MODE_TERMINATE 99 \/cyflex\/bin\/exec_script &#8220;my_script READ count&#8221;<\/p>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>The program ensures correct handling of the script&#8217;s exit status by resetting the SIGCHLD signal to default.<\/p>\n<dl>\n<dd>\n<p>The following is an example specification that should be placed in a gp_test procedure. If &#8216;my_script&#8217; exits with an &#8216;exit 0&#8217;, then the &#8216;success_path&#8217; would be the next mode executed in the the gp_test procedure. However, if &#8216;my_script exits with an &#8216;exit 7&#8217;, then the &#8216;failure_path&#8217; would be the next mode executed by the procedure.<\/p>\n<p>@AUXILIARY_TASK <br \/>\n#start_type\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 success_path\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 failure_path <br \/>\nAT_START\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 MODE_TERMINATE\u00a0\u00a0\u00a0 99<\/p>\n<p>#task pathname\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u201ccommand line\u201d <br \/>\n\/cyflex\/bin\/exec_script\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;\/specs\/cmds\/my_script\u00a0\u00a0\u00a0 READ\u00a0\u00a0\u00a0 count&#8221;<\/p>\n<\/dd>\n<\/dl>\n<\/dd>\n<\/dl>\n<h3>See Also:<\/h3>\n<dl>\n<dd>\n<p><a href=\"\/index.php\/usage-help-manual\/12-test-manager\/gp_test\/\">gp_test<\/a>, <a href=\"\/wp-content\/uploads\/@AUXILIARY_TASK-Launch-Special-Support-Task.pdf\">@AUXILIARY_TASK<\/a><\/p>\n<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Execute a specified script file in response to a start event from gp_test and return the script&#8217;s exit status to indicate success or failure. Enter: exec_script &lt;prio&gt; &lt;strt_evnt&gt; &lt;stp_evnt&gt; &lt;reply_evnt&gt; &lt;proc_num&gt; &lt;mode_num&gt; &lt;call_proc&gt; &lt;script_file&gt; [arg1] [arg2]&#8230; Where: prio Specify the task priority. strt_evnt Specify the start event name. stp_evnt Specify the stop event name. [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1957,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3639","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3639","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=3639"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3639\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1957"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=3639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}