discuss-gnustep
[Top][All Lists]
Advanced

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

Re: NSTask Help needed


From: Wim Oudshoorn
Subject: Re: NSTask Help needed
Date: Tue, 20 Jul 2004 20:07:35 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (darwin)

Todd Riley <triley@email.unc.edu> writes:

> 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.)

Hm, what do you mean with the code works fine on MacOSX and in a mingw32
shell?  Especially, what is the difference between 
"to launch anything in the native Windows command prompt"
and
"works fine a ming32 shell on Windows 2000"?

Having said that
> Here is my code:
>
>       NSTask *task = [NSTask new];
>       [task setLaunchPath:@"make"];

What happens when you put the complete path name here?  instead of just "make"

> 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
>

Because as far as I know, "make" is installed in
F:\GNUstep\Development\msys\1.0\mingw\bin

so GNUstep is probably right to complain it can't find make.

Note that NSTask will not search the path as far as I know.

> 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

Same issue.

Wim Oudshoorn




reply via email to

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