Re: Also Wrapping an Interactive Unix Executable
Re: Also Wrapping an Interactive Unix Executable
- Subject: Re: Also Wrapping an Interactive Unix Executable
- From: Sherm Pendley <email@hidden>
- Date: Thu, 16 Dec 2004 10:06:53 -0500
On Dec 16, 2004, at 9:45 AM, email@hidden wrote:
My question is, what's the best way to do this. Very preliminary
attempts with system() or NSTask have not been able to catch ssh's
prompting for password, etc., or returns an error about ssh expecting
a terminal. Ideally I would like to do this where a user can be
prompted for a login and password so that I'm not responsible for
managing keys for specific hosts.
SSH is unique in this regard - it examines its environment for a
variable named SSH_ASKPASS. If it finds one, it will use the app at the
path found to prompt the user and collect login info.
Google and/or check the list archives for SSHPassKey for a good example.
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
_______________________________________________
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