Open Classswift 6.0.3Foundation
Process
class Process
class Process
import Foundation
class NSObject
The root class of most Foundation class hierarchies.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol NSObjectProtocol : AnyObject
The NSObjectProtocol
groups methods that are fundamental to all Foundation objects.
protocol Sendable
override init()
static let didTerminateNotification: NSNotification.Name
class func run(_ url: URL, arguments: [String], terminationHandler: ((Process) -> Void)? = nil) throws -> Process
var arguments: [String]?
var currentDirectoryURL: URL? { get set }
var environment: [String : String]?
var executableURL: URL? { get set }
var isRunning: Bool { get }
var processIdentifier: Int32 { get }
var qualityOfService: QualityOfService
var standardError: Any? { get set }
var standardInput: Any? { get set }
var standardOutput: Any? { get set }
var terminationHandler: ((Process) -> Void)?
var terminationReason: Process.TerminationReason { get }
var terminationStatus: Int32 { get }
func interrupt()
func resume() -> Bool
func run() throws
func suspend() -> Bool
func terminate()
func waitUntilExit()
enum TerminationReason
class func launchedProcess(launchPath path: String, arguments: [String]) -> Process
var currentDirectoryPath: String { get set }
var launchPath: String? { get set }
func launch()