Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (7230 KB)
ctrun(1)Name | Synopsis | Description | Options | Operands | Examples | Exit Status | Files | Attributes | See Also Name
Synopsis/usr/bin/ctrun [options] command [ argument]... DescriptionThe ctrun utility starts a command in a newly created process contract. ctrun holds the contract and can be instructed to output or respond to events that occur within the contract. For additional information about process contracts, see contract(4) and process(4). Options
The following options are supported: Operands
The following operands are supported: ExamplesExample 1 Running a Shell in a New Process ContractThe following example runs a shell in a new process contract:
The -l child option argument is specified so that ctrun won't wait until all children of the shell have exited. -o pgrponly is specified because an interactive ksh puts each job in a new process group, and an error in one job is unlikely to affect the others. Example 2 Running a Simple ServerThe following example runs a simple server:
The -r 0 and -t options are specified to indicate that if the server encounters a fatal error, ctrun should try to restart it. The -f option makes “hwerr“, “core”, and “signal” fatal events. Exit Status
If command is specified and successfully invoked (see exec(2)), the exit status of ctrun is the exit status of command. Otherwise, ctrun exits with one of the following values: FilesAttributesSee attributes(5) for descriptions of the following attributes:
Human Readable Output is Uncommitted. Invocation is Committed. See AlsoSunOS 5.11 Last Revised 25 Feb 2008Name | Synopsis | Description | Options | Operands | Examples | Exit Status | Files | Attributes | See Also |
||||||||