Command monitor TAPI
Overview
Definition of API to configure command monitor. More…
// global functions static te_errno tapi_cfg_cmd_monitor_begin(char const* ta, char const* name, char const* command, int time_to_wait); static te_errno tapi_cfg_cmd_monitor_end(char const* ta, char const* name);
Detailed Documentation
Definition of API to configure command monitor.
Copyright (C) 2004-2022 OKTET Labs Ltd. All rights reserved.
Global Functions
static te_errno tapi_cfg_cmd_monitor_begin(char const* ta, char const* name, char const* command, int time_to_wait)
Start a command monitor. It will periodically run specified shell command and log its output.
Parameters:
ta |
Test Agent name. |
name |
Name for a node in configuration tree. |
command |
Command to run. |
time_to_wait |
How long to wait before running a command again, in milliseconds. |
Returns:
Status code.
static te_errno tapi_cfg_cmd_monitor_end(char const* ta, char const* name)
Stop a command monitor (removing its node from configuration tree).
Parameters:
ta |
Test Agent name. |
name |
Name of the command monitor node in configuration tree. |
Returns:
Status code.