Skip navigation.
 
mlRe: Launching Terminal Application
FROM : mw
DATE : Sat Nov 30 15:14:25 2002

Ahh, okay. It's amazing how that little dash made the difference between the
program working and not (well, I guess semicolons are infamous for doing
that too ;-) ). I wasn't sure whether or not to add the dash, and it didn't
specify in the documentation if I should or not.

Thanks for the help! Now I can finally begin to write my *real* program :-).

mw


> If you run top manually just as you are running it here (top ln0) you'll
> see it still goes into interactive mode as it's ignoring your argument.
> Interactive mode requires a terminal with which top can communicate, and
> a pipe isn't one of them, hence the error.
> Instead, try
>
> [taskCalledTop setArguments:[NSArray arrayWithObject:@"-l1"]];
>
> to get one sample from top, without requiring a terminal top knows.
>
> Bryan
>
>
> On Nov 29, 2002 23:49, mw stated:

>> Hey all,
>>
>> I based this little bit of "sample code" off of an Apple code example in the
>> dev docs. It is just supposed to load up 'top' from the command-line, and
>> then pipe the output back into the cocoa program and display it in an
>> NSTextView. But it doesn't work. I get an error that says "Error opening
>> terminal: unknown." I have no idea what I am doing wrong. Here is the code.

[clip]
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlLaunching Terminal Application mw Nov 30, 05:49
mlRe: Launching Terminal Application Bryan Blackburn Nov 30, 06:08
mlRe: Launching Terminal Application mw Nov 30, 15:14