Shell exec

From Soldat Community Wiki
Jump to: navigation, search

function shell_exec(Command: string): integer;

Parameter Info:

 Command (String): Command to be executed on the machine running the Soldat Server.

Description:
This function will execute (Command) on the machine running the Soldat Server.
If the server is windows, command.com will be executed with the (Command) parameter.
If the server is Linux, the Libc system function will be called.

NOTE: This function is only enabled when Safe Mode is turned off!
      Start the server with -safe 0 to disable Safe Mode.

Syntax Example:
N/A