
CommandLineExec |
org.sdm.spa.CommandLineExec |
Given a command string, the CommandLineExec actor executes it using the
java Runtime class.
SUPPORTED COMMAND TYPES:
- command
- command < infile > outfile
- command > outfile
- command < infile
- command [arg1..argn] > outfile
- command [arg1..argn]
- command [arg1..argn] < infile > outfile
- command1 | command 2 (Warning: This type of commands doesn't give the output of all the commands. Instead it outputs only the result of the last one.)
Example commands:
- C:/Program Files/Internet Explorer/IEXPLORE.EXE
To generate this command, just double click on the actor and type this in the command parameter field.
- C:/cygwin/bin/perl.exe c:/project/kepler/test/workflows/example.pl > c:/project/kepler/test/workflows/example.out
- C:/cygwin/bin/dir.exe > dirTemp.txt
Author(s): Ilkay Altintas, Christopher Hylands Brooks, Bilsay Yildirim, Contributor: Edward A. Lee
Version:$Id: CommandLineExec.java,v 1.6 2006/04/20 19:07:28 altintas Exp $
arguments
The arguments to the command. Implemented as a multi/input port to
support more than one argument. It concatanates the inputs in all the
channels.
If there is an input file, this port can be empty.
inputStream
Strings to pass to the standard input of the subprocess. This port is an
input port of type String.
infileHandle
This is an optional port. Used if the file accepts an input file instead
of a list of arguments.
trigger
The trigger port. The type of this port is undeclared, meaning that it
will resolve to any data type.
outfileHandle
A string that forwards the outputFile parameter if it exists.
output
The result stream of the command.
exitCode
Exit code will be 1 if the command executes successfully.
hide
The attribute to hide or show the trigger port without deleting it.
command
The command to execute.
outputFile
Needs to be filled in if the user wants the command
to output to a file.
outputLineByLine
If selected, broadcasts the output of the command line by line.
hasTrigger
Unhide the trigger port when this parameter is true.
This Parameter is type of boolean.