• 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: Also Wrapping an Interactive Unix Executable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Also Wrapping an Interactive Unix Executable (From: email@hidden)

  • Prev by Date: Re: has exited due to signal 10 (SIGBUS).
  • Next by Date: Re: cross development on Jaguar
  • Previous by thread: Re: Also Wrapping an Interactive Unix Executable
  • Next by thread: Re: Also Wrapping an Interactive Unix Executable
  • Index(es):
    • Date
    • Thread