Home > Contents > Index >
SYSEXEC
Executes a system-dependent shell-level command.
Syntax
<SYSEXEC CMD="command" [SYSOUT="output return"] [SYSERR="error return"] [WAIT="wait val"]/>Parameters
CMD (required)- Shell-level command to execute.
SYSOUT (optional)- Variable name to contain the system output returns. If not set, these returns are unavailable. Specify
SYSOUTand/orSYSERRarguments for this tag only ifWAITistrue, otherwise,errno -14is set.
SYSERR (optional)- Variable name to contain the system error returns. If not set, these returns are unavailable. Specify
SYSOUTand/orSYSERRarguments for this tag only ifWAITistrue, otherwise,errno -14is set.
WAIT (optional)- Indicates whether to execute the command immediately or wait. Possible values are
trueorfalse. The default isfalse. You could create an infinite loop if you set this parameter totruefor NT Command shell commands.
Error Numbers
The possible values of
errnoinclude:
Value Description -14 Process exception error.Example
This example executes a Windows NT shell-level directory command on the value of
Variables.testfile(replaced before the command executes).<SYSEXEC CMD="cmd /c dir /OD Variables.testfile" SYSOUT="execout" SYSERR="execerr" WAIT="true"/> <SYSEXEC CMD="ls Variables.testfile" SYSOUT="execout" SYSERR="execerr" WAIT="true"/>Your code should check to see if the variables exist (contain data) before printing, for example:
<IFCOND="IsVariable.execerr=true"> <THEN> Error string returned: <CSVARNAME="Variables.execerr"/> </THEN> </IF>See Also
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.