Re: Understanding NSTask
Re: Understanding NSTask
- Subject: Re: Understanding NSTask
- From: Torsten Curdt <email@hidden>
- Date: Mon, 08 Apr 2013 17:21:44 +0200
Not sure how your code looks like but a common problem is that the
stdout and stderr buffer can run full if not done correctly.
Old code but something along the lines of this here should work
https://github.com/tcurdt/uif2iso4mac/blob/master/Sources/TaskCommand.m
cheers,
Torsten
On Mon, Apr 8, 2013 at 1:59 PM, Rui Henriques Pacheco
<email@hidden> wrote:
> Hi,
>
> I'm currently going through all available literature on Google on using NSTask to open SSH tunnels. While I have running code I'm not sure I understand everything that's happening.
>
> First, NSTask executes SSH as a subprocess. Then why is this blocking the main thread?
>
> --
> Rui Henriques Pacheco
> Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden