stdout
Format
stdout = "filename:mode"
Description
The stdout keyword specifies the filename and the access mode. The
access modes are overwritten (w) or append (a). Specifying stdout="NULL"
closes STDOUT_FILENO(fd:1) for the process.
Example
stdout = "/tmp/plms_log.txt:a"
Default
The system default is that the child process inherits its parent's stdout. The child process inherits plms's stdout.
Multiplicity
This is not allowed when tty is specified. When tty is specified, only one instance is allowed.
Constraints
-
The value of stdout is evaluated during component runtime.
-
If the specified file is not available, then the file is created.
-
If stdout is specified, then tty is not allowed in the task.
-
If stdout is specified in a task, then the task must have one of the exec*() functions so that stdout is used at run time.
-
The file specified needs to have write access for the user/group that the task is running at. It cannot rely on access granted by a supplementary group since these groups are not set until after the process is spawned. If the file is only owned by a supplementary group, the process will not be able to write to stdout since the supplementary groups are not configured until after the process has been spawned.
