• 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: NSTask with ssh-agent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask with ssh-agent


  • Subject: Re: NSTask with ssh-agent
  • From: "James W. Walker" <email@hidden>
  • Date: Sun, 14 Dec 2008 15:12:41 -0800


On Dec 13, 2008, at 5:51 PM, James W. Walker wrote:

I'm using NSTask to run Mercurial, which internally uses ssh to communicate with a server. It works when there is no pass phrase on the private key, but what if there is one? I've heard that Leopard has a built-in ssh-agent that integrates with the Keychain, but I don't understand how to take advantage of that. Any clues?

Never mind, I figured it out myself. It's about environment variables. Normally, NSTask copies the host environment to the task, but I was using setEnvironment. To fix it, I needed to make a make a mutable copy of the current environment dictionary, add to that, and then set it in the task.


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

References: 
 >NSTask with ssh-agent (From: "James W. Walker" <email@hidden>)

  • Prev by Date: Re: Unexpected behaviour with autorelease pool
  • Next by Date: Re: Unexpected behaviour with autorelease pool
  • Previous by thread: NSTask with ssh-agent
  • Next by thread: Newbie Q: Why is UIWindow in the AppDelegate not an ivar?
  • Index(es):
    • Date
    • Thread