Search

User Manual

GETTING STARTED


MODULES AND 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
SDK Documentation
SDK Examples

ALL USER MANUAL VERSIONS

Ignition 8.1
Ignition 7.9
Ignition 7.8

Deprecated Pages

Employees

Sign In

Skip to end of metadata
Go to start of metadata

This function is used in Python Scripting.

Description

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 Permission Restrictions

This scripting function has no Client Permission restrictions.

Syntax

system.util.execute(commands)

  • Parameters

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

  • Returns

nothing

  • Scope

Gateway, Vision Client, Perspective Session

Code Examples
Code Snippet
# This code starts the Firefox browser and opens the Google home page.
system.util.execute(['C:\\Program Files\\Mozilla Firefox\\firefox.exe', 'https://www.google.com'])
Code Snippet
# This function flushes the resolver cache.
system.util.execute(["ipconfig", "/flushdns"])
Code Snippet
# This code runs the Notepad program and opens the Ignition license text file.
system.util.execute(['notepad.exe', 'c:\\program files\\inductive automation\\ignition\\license.txt'])
Keywords

system util execute, util.execute

  • No labels