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.

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);