K.S. Bhaskar on 13 Apr 2010 11:36:54 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] POSIX shell way to read a passphrase


Thanks, David, that worked.  Thanks, Sean, yes, I will put a trap that
does an stty sane.

Regards
-- Bhaskar

On Tue, Apr 13, 2010 at 1:35 PM, sean finney <seanius@seanius.net> wrote:
> On Tue, Apr 13, 2010 at 12:39:34PM -0400, David Blackman wrote:
>> I've done it this way:
>>
>> http://www.askdavetaylor.com/prompting_users_for_passwords_in_a_shell_script.html
>
> you might want to put a trap into your script that resets the tty, in case the
> user hits ctrl-c or similar while the tty isn't echoing.
>
>
>        sean
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iD8DBQFLxKt0ynjLPm522B0RAtfsAKCKSd4rvbruIPPFgcqvDiiHsfmWcwCdH2qw
> R+oPupPVnYkK8bCA0CIROSc=
> =tIiF
> -----END PGP SIGNATURE-----
>
> ___________________________________________________________________________
> Philadelphia Linux Users Group         --        http://www.phillylinux.org
> Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
> General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
>
>



-- 
Windows does to computers what smoking does to humans
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug