ObjFW
|
A class for stream-like communication with a newly created process. More...
#import <OFProcess.h>
Public Member Functions | |
(id) | - initWithProgram: |
Initializes an already allocated OFProcess with the specified program and invokes the program. | |
(id) | - initWithProgram:arguments: |
Initializes an already allocated OFProcess with the specified program and arguments and invokes the program. | |
(id) | - initWithProgram:programName:arguments: |
Initializes an already allocated OFProcess with the specified program, program name and arguments and invokes the program. | |
(void) | - closeForWriting |
Closes the write direction of the process. | |
Static Public Member Functions | |
(id) | + processWithProgram: |
Creates a new OFProcess with the specified program and invokes the program. | |
(id) | + processWithProgram:arguments: |
Creates a new OFProcess with the specified program and arguments and invokes the program. | |
(id) | + processWithProgram:programName:arguments: |
Creates a new OFProcess with the specified program, program name and arguments and invokes the program. |
A class for stream-like communication with a newly created process.
- (void) closeForWriting |
Closes the write direction of the process.
This method needs to be called for some programs before data can be read, since some programs don't start processing before the write direction is closed.
- (id) initWithProgram: | (OFString*) | program |
Initializes an already allocated OFProcess with the specified program and arguments and invokes the program.
program | The program to execute. If it does not start with a slash, the search path specified in PATH is used. |
arguments | The arguments to pass to the program, or nil |
- (id) initWithProgram: | (OFString*) | program | |
programName: | (OFString*) | programName | |
arguments: | (OFArray*) | arguments | |
Initializes an already allocated OFProcess with the specified program, program name and arguments and invokes the program.
program | The program to execute. If it does not start with a slash, the search path specified in PATH is used. |
programName | The program name for the program to invoke (argv[0]). Usually, this is equal to program. |
arguments | The arguments to pass to the program, or nil |
+ (id) processWithProgram: | (OFString*) | program |
Creates a new OFProcess with the specified program and arguments and invokes the program.
program | The program to execute. If it does not start with a slash, the search path specified in PATH is used. |
arguments | The arguments to pass to the program, or nil |
+ (id) processWithProgram: | (OFString*) | program | |
programName: | (OFString*) | programName | |
arguments: | (OFArray*) | arguments | |
Creates a new OFProcess with the specified program, program name and arguments and invokes the program.
program | The program to execute. If it does not start with a slash, the search path specified in PATH is used. |
programName | The program name for the program to invoke (argv[0]). Usually, this is equal to program. |
arguments | The arguments to pass to the program, or nil |