help-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTask Help needed


From: Todd Riley
Subject: NSTask Help needed
Date: Fri, 16 Jul 2004 13:43:39 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)

Hello,

I am having some difficulty with NSTask. All I am trying to do is launch a task (actually "make"). The code works fine on MacOSX and in a mingw32 shell on Windows 2000. However, I am unable to get NSTask to launch anything in the native Windows command prompt. (My executable uses only the foundation classes and runs in a shell.)

Here is my code:

        NSTask *task = [NSTask new];
        [task setLaunchPath:@"make"];
        [task setArguments:[NSArray arrayWithObjects:@"-j",@"3", nil]];
        [task setCurrentDirectoryPath:folderName];
        [task launch];
        [task waitUntilExit];
        [task release];


Here is the error I get:

2004-07-16 17:30:36.186 bnetrun[3856] Error launching task: F:\GNUstep\Development\msys\1.0\bin\make.exe


Notice that if I attempt to launch another program I get the same error:

2004-07-16 17:31:36.196 bnetrun[3857] Error launching task: F:\GNUstep\Development\msys\1.0\bin\cmd.exe



Any help here would be greatly appreciated,
Todd Riley





reply via email to

[Prev in Thread] Current Thread [Next in Thread]