• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Client ssh
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Client ssh
      • From: Dominic Blais <email@hidden>
References: 
 >Client ssh (From: Valerio Ferrucci <email@hidden>)
 >Re: Client ssh (From: Dominic Blais <email@hidden>)

  • Prev by Date: Creating/Populating Windows programatically
  • Next by Date: Fwd: About CFURLGetFSRef
  • Previous by thread: Re: Client ssh
  • Next by thread: Re: Client ssh
  • Index(es):
    • Date
    • Thread