shell

Syntax

shell(cmd)

Details

Execute an operating system command. It can only be executed by the administrator when the configuration parameter enableShellFunction is set to true.

Call function system() of the corresponding operating system. If cmd is successfully executed, the system will return 0. For other return values, please refer to the return values of function system() of the corresponding operating system.

Parameters

cmd is a string indicating an operating system command.

Returns

Returns 0 if cmd is executed successfully. For other return values, see the return values of the operating system system() function.

Examples

cmd="rm -rf /home/user1/test.txt"
shell(cmd);