({{, (RefLink[ProcessInformation, paclet:ref/ProcessInformation])[proc] 
gives information about an external process proc.}, {, (RefLink[ProcessInformation, paclet:ref/ProcessInformation])[proc,"prop"]
gives information about the property "prop". }})

OpenersNotesSection(Spacer1)Details

The external process proc is specified by a (RefLink[ProcessObject, paclet:ref/ProcessObject]).

(RefLink[ProcessInformation, paclet:ref/ProcessInformation])[proc] returns an association giving values of all properties.

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Start the system shell process:

process=StartProcess[$SystemShell]

Write the exit command into the shell process:

WriteLine[process,"exit 20"];

Retrieve the process exit code:

ProcessInformation[process,"ExitCode"]

Start the system shell process:

process=StartProcess[$SystemShell]

Use (RefLink[ProcessInformation, paclet:ref/ProcessInformation]) to get the process exit code:

ProcessInformation[process]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[ProcessStatus, paclet:ref/ProcessStatus])  ▪  (RefLink[ProcessObject, paclet:ref/ProcessObject])  ▪  (RefLink[Processes, paclet:ref/Processes])  ▪  (RefLink[KillProcess, paclet:ref/KillProcess])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Direct Control of External Processes, paclet:guide/DirectControlOfExternalProcesses])}, {▪(RefLinkPlain[External Language Interfaces, paclet:guide/ExternalLanguageInterfaces])}})}})