TWiki
>
TWiki Web
>
TWikiVariables
>
VarEXECUTE
(revision 1) (raw view)
Edit
Attach
Tags:
view all tags
#VarEXECUTE ---+++ EXECUTE{ "script" } -- safely execute shell scripts or Perl code - use TWiki as the user interface for external applications * Use the =%<nop>EXECUTE{}%= variable to safely execute shell scripts. The variable is handled by the ExecutePlugin - see plugin for details on how to configure external scripts so that they can be used in =%<nop>EXECUTE{}%=. * Syntax: =%<nop>EXECUTE{ "script" ... }%= * Supported parameters:%STARTSECTION{"parameters"}% | *Parameter* | *Explanation* | *Default* | *Example* | | ="name"= | Name of script to execute, as defined in [[%SCRIPTURL{configure}%][configure]]. %IF{ "'%INCLUDINGTOPIC%'='ExecutePlugin'" else="See ExecutePlugin for details." }% | (none) | ="test-results"= | | =format="..."= | Format each line of the script output. The token =$text= expands to the text of a line. Additional %SYSTEMWEB%.FormatTokens can be used, such as =$percnt= for the percent sign. | ="$text"= | <span style="white-space: nowrap;"> =format="| $text |"= </span> | | =newline="..."= | Change newlines of the script output to something else. %SYSTEMWEB%.FormatTokens can be used, such as =$n= for newline. | ="$n"= | =newline=", "= | | =...="..."= | Any other parameter can be used as parameter to the script. | (none) | =date="%SERVERTIME{$year-$mo-$day}%"= |%ENDSECTION{"parameters"}% * Example: =%<nop>EXECUTE{ "qa_results" date="%<nop>URLPARAM{date}%" }%= * Category: ApplicationsAndComponentsVariables, DatabaseAndFormsVariables, DevelopmentVariables, ImportVariables, UIAndVisualizationVariables, WorkflowAndAutomationVariables * Related: ExecutePlugin, [[%SCRIPTURL{configure}%][configure]]
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r1 - 2024-03-02
-
TWikiAdminUser
TWiki
Log In
or
Register
TWiki Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
AdminToolsCategory
InterWikis
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Webs
Blog
TWiki
ZMobile
Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback
Note:
Please contribute updates to this topic on TWiki.org at
TWiki:TWiki.VarEXECUTE
.