systemDetached()

The function runs a system shell command in the background.

Synopsis

bool systemDetached(string command);

Parameters

Parameter Description
command Shell command that is executed.

Return value

Returns TRUE when the function was successfully started.

Description

The systemDetached() function is used to run a shell command in WinCC OA in the background. The function systemDetached() does not wait for a result or stop processes but runs in the background.

  1. main(mapping event)
    
    
    {
    
    
      DebugN(systemDetached("loffice"));
    
    
    /* Starts Libre Office (which is also available on Windows) */
    
    
    }

Assignment

Miscellaneous functions

Availability

CTRL, UI