Re: NSTask with ssh-agent
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