Re: Client ssh
Re: Client ssh
- Subject: Re: Client ssh
- From: "Shawn Erickson" <email@hidden>
- Date: Wed, 31 May 2006 09:05:31 -0700
On 5/31/06, Dominic Blais <email@hidden> wrote:
[[NSTask launchedTaskWithLaunchPath:@"/usr/bin/ssh" arguments:
[NSArray arrayWithObjects: @"www.somesite.net", @"ls", nil]]
waitUntilExit];
You likely already know but... using waitUntilExit in that way can get
you into a deadlock. You need to drain the stdio related pipes of the
launched process or it can block on you waiting for room in the pipe
(it will never exit so you will stay in waitUntilExit).
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden