mn8 Language Reference | Index    

Process

SUMMARY: ATTRIBUTES SUMMARY  ELEMENTS SUMMARY  NO CONSTRUCTORS  NO OPERATORS  METHODS SUMMARYDETAIL: ATTRIBUTE DETAILS  ELEMENT DETAILS  NO CONSTRUCTORS  NO OPERATORS  METHOD DETAILS

Description

Executes the specified external command in a separate process.

Usage

Execute the external 'ls' command with '-l' parameter and show results.

            $cmd typeOf Series
            $process typeof Process
            $cmd.add("ls")
            $cmd.add("-l")
            $process = $process.exec( $cmd )
            print $process/output
        

Send mail to specified user with specified subject and text message.

            $cmd typeOf Series
            $process typeof Process
            $cmd.add("mailto")
            $cmd.add("emailaddress")
            $cmd.add("-s")
            $cmd.add("Subject")
            $process.setInput("This is a test message.")
            $process = $process.exec( $cmd )
        

Version: 0.1
Authors:Szabo Csaba
Inherits: Concept

Attribute List

 @exitValue TYPEOF String LABEL "exitValue"
top

Element List

 error TYPEOF String LABEL "error"
 input TYPEOF String LABEL "input"
 output TYPEOF String LABEL "output"
top

Method List

Processexec (String $cmd, String $dir)
Processexec (String $cmd)
Processexec (Series $cmd, String $dir)
Processexec (Series $cmd)
setInput (String $value)
top
Methods inherited from: Concept
cloneConcept, extendsConcept, fromXML, getAllInheritedConcepts, getConceptAttribute, getConceptAttributeField, getConceptAttributeFields, getConceptAttributes, getConceptConstructors, getConceptElement, getConceptElementField, getConceptElementFields, getConceptElements, getConceptLabel, getConceptMethod, getConceptMethods, getConceptOperators, getConceptType, getConceptsAtPath, getErrorHandler, getInheritedConcepts, hasConceptAttribute, hasConceptElement, hasConceptMethod, hasPath, isHidden, loadContent, setConceptLabel, setErrorHandler, setHidden, setShowEmpty, showEmpty, toTXT, toXML

Detailed Attribute Info

@exitValue

Label:exitValue
Type:String
Is Static:false
Is Hidden:false
Show Empty:true

Indicates the exit value for the subprocess.

top

Detailed Element Info

error

Label:error
Type:String
Is Static:false
Is Hidden:false
Is Multi:false
Show Empty:true

Indicates the error value for the subprocess.

top

input

Label:input
Type:String
Is Static:false
Is Hidden:false
Is Multi:false
Show Empty:true

Indicates the input value for the subprocess.

top

output

Label:output
Type:String
Is Static:false
Is Hidden:false
Is Multi:false
Show Empty:true

Indicates the output value for the subprocess.

top

Detailed Method Info

exec (String $cmd, String $dir)
Parameters:
$cmd :The command to execute.
$dir : The working directory of the subprocess, or null if the subprocess should inherit the working directory of the current process.
Returns: Process
Exceptions:
execFailed :
(Error)
If unable to execute command.

Executes the specified command in a separate process with the specified working directory.

top
exec (String $cmd)
Parameters:
$cmd :The command to execute.
Returns: Process
Exceptions:
execFailed :
(Error)
If unable to execute command.

Executes the command given as parameter.

top
exec (Series $cmd, String $dir)
Parameters:
$cmd :A series containing the command to call and its arguments.
$dir : The working directory of the subprocess, or null if the subprocess should inherit the working directory of the current process.
Returns: Process
Exceptions:
execFailed :
(Error)
If unable to execute command.

Executes the specified command in a separate process with the specified working directory.

top
exec (Series $cmd)
Parameters:
$cmd :A series containing the command to call and its arguments.
Returns: Process
Exceptions:
execFailed :
(Error)
If unable to execute command.

Executes the command given as parameter.

top
setInput (String $value)
Parameters:
$value :A string to be set.

Sets the input value to the specified value.

top