shell

Syntax

shell(cmd)

Arguments

cmd is a string indicating an operating system command.

Details

Execute an operating system command. Only system administrators can execute it. 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.

Examples

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