From: "ara.t.howard" Date: 2008-07-22T13:39:04+09:00 Subject: Re: interacting with a shell script (ssh) On Jul 21, 2008, at 10:34 PM, Une Bévue wrote: > from a (j)ruby script, I'll launch a shell script asking for a pass > phrase (ssh authentification). > > obviously I'll ask the user to enter he's pass phrase before lauching > ssh. > > but how could i know, after having launched ssh, the shell script is > waiting for an input ? > -- not easily. - use ssh keys and specify only key auth so it fails otherwise - use net/ssh - use a pty to provide the password - rely on ssh-agent - do *hairly* io operations to enter the passprase yourself those are really the options a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama