User Manual

GETTING STARTED


OTHER EDITIONS


LAUNCHERS


MODULES


PLATFORM


APPENDIX


TUTORIALS & HELPFUL TRICKS


STRATEGIC PARTNER LINKS

Sepasoft - MES Modules
Cirrus Link - MQTT Modules

RESOURCES

Inductive University
Ignition Demo Project
Knowledge Base Articles
Forum
IA Support

ALL USER MANUAL VERSIONS

Ignition 8.1. Offline Version (04/2021)
Ignition 8 Online Version
Ignition 7.9 Online Version
Ignition 7.8 Online Version

Deprecated Pages

SDK Documentation

Employees

Sign In

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Scripting_function


Panel
titleDescription

Executes the given commands via the operating system, in a separate process. The commands argument is an array of strings. The first string is the program to execute, with subsequent strings being the arguments to that command.

Client permissions restrictions


Panel
titleSyntax

system.util.execute(commands)

  • Parameters

List[String] commands - A list containing the command (1st entry) and associated arguments (remaining entries) to execute.

  • Returns

Nothing

  • Scope

Gateway, Vision Client, Perspective Session

Panel
titleCode Examples
Code Block
languagepy
titleCode Snippet
# This function flushes the resolver cache.
system.util.execute(["ipconfig", "/flushdns"])
Although
Note_friendly
Code Block
languagepy
titleCode Snippet
# This code starts the Firefox browser and opens the Google home page.
# Although system.util.execute() is also Perspective Session scoped, the following
code snippets will not work in a Perspective Session due to limitations of launching programs from a web environment.
Code Block
languagepy
titleCode Snippet
# This code starts the Firefox browser and opens the Google home page. code snippet 
# will not work in a Perspective Session due to limitations of launching programs from a web environment. 
system.util.execute(['C:\\Program Files\\Mozilla Firefox\\firefox.exe', 'https://www.google.com'])
Code Block
languagepy
titleCode Snippet
# This code runs the Notepad program and opens the Ignition license text file.
# Although system.util.execute() is also Perspective Session scoped, the following code snippet 
# will not work in a Perspective Session due to limitations of launching programs from a web environment.   
system.util.execute(['notepad.exe', 'C:\\Program Files\\Inductive Automation\\Ignition\\license.txt'])
Panel
titleKeywords

system util execute, util.execute