4 Copyright (C) 1995, 1996, 1997 Ovidiu Predescu and Mircea Oancea.
7 Author: Ovidiu Predescu <ovidiu@net-community.com>
9 Based on the code written by Aleksandr Savostyanov <sav@conextions.com>.
11 This file is part of libFoundation.
13 Permission to use, copy, modify, and distribute this software and its
14 documentation for any purpose and without fee is hereby granted, provided
15 that the above copyright notice appear in all copies and that both that
16 copyright notice and this permission notice appear in supporting
19 We disclaim all warranties with regard to this software, including all
20 implied warranties of merchantability and fitness, in no event shall
21 we be liable for any special, indirect or consequential damages or any
22 damages whatsoever resulting from loss of use, data or profits, whether in
23 an action of contract, negligence or other tortious action, arising out of
24 or in connection with the use or performance of this software.
30 #include <Foundation/NSObject.h>
32 @class NSString, NSArray, NSDictionary, NSFileHandle;
34 LF_EXPORT NSString *NSTaskDidTerminateNotification;
36 @interface NSTask : NSObject
38 + (NSTask *)launchedTaskWithLaunchPath:(NSString *)path
39 arguments:(NSArray *)arguments;
41 - (void)setLaunchPath:(NSString *)path;
42 - (void)setArguments:(NSArray *)arguments;
43 - (void)setEnvironment:(NSDictionary *)dict;
44 - (void)setCurrentDirectoryPath:(NSString *)path;
46 - (void)setStandardInput:(id)input;
47 - (void)setStandardOutput:(id)output;
48 - (void)setStandardError:(id)error;
50 - (NSString *)launchPath;
51 - (NSArray *)arguments;
52 - (NSDictionary *)environment;
53 - (NSString *)currentDirectoryPath;
63 - (int)terminationStatus;
64 - (void)waitUntilExit;
66 - (unsigned int)processId;
70 #endif /* __NSTask_h__ */