<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Hide password entry in Bourne/bash shell script</title>
	<atom:link href="http://www.tech-recipes.com/rx/278/hide-password-entry-in-bournebash-shell-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/278/hide-password-entry-in-bournebash-shell-script/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Sat, 21 Nov 2009 16:14:40 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: </title>
		<link>http://www.tech-recipes.com/rx/278/hide-password-entry-in-bournebash-shell-script/comment-page-1/#comment-2448</link>
		<dc:creator></dc:creator>
		<pubDate>Wed, 14 Dec 2005 08:51:27 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-2448</guid>
		<description>One more thing (OS and shell-dependent):
use closing redirection in the stty command:
 stty -echo &gt;&amp;- 2&gt;&amp;-

This helps to avoid obsolete &quot;No terminal&quot; message in the scripts.</description>
		<content:encoded><![CDATA[<p>One more thing (OS and shell-dependent):<br />
use closing redirection in the stty command:<br />
 stty -echo &gt;&amp;- 2&gt;&amp;-</p>
<p>This helps to avoid obsolete &#8220;No terminal&#8221; message in the scripts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: qmchenry</title>
		<link>http://www.tech-recipes.com/rx/278/hide-password-entry-in-bournebash-shell-script/comment-page-1/#comment-2447</link>
		<dc:creator>qmchenry</dc:creator>
		<pubDate>Wed, 14 Dec 2005 08:48:52 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-2447</guid>
		<description>Awesome!  I&#039;ve never used trap before, but I&#039;ll be using it from now on.  That&#039;s a great solution to a very annoying problem.  Thanks for sharing!  Use of the trap command would make a great recipe..

Q</description>
		<content:encoded><![CDATA[<p>Awesome!  I&#8217;ve never used trap before, but I&#8217;ll be using it from now on.  That&#8217;s a great solution to a very annoying problem.  Thanks for sharing!  Use of the trap command would make a great recipe..</p>
<p>Q</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sttyecho</title>
		<link>http://www.tech-recipes.com/rx/278/hide-password-entry-in-bournebash-shell-script/comment-page-1/#comment-2446</link>
		<dc:creator>sttyecho</dc:creator>
		<pubDate>Wed, 14 Dec 2005 08:43:39 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-2446</guid>
		<description>I also add the protection for the interruptions:

trap &quot;stty echo ; exit&quot; 1 2 15
stty -echo
read password
stty echo
trap &quot;&quot; 1 2 15

If the user press Ctrl+C in the password prompt, the normal stty mode will be restored</description>
		<content:encoded><![CDATA[<p>I also add the protection for the interruptions:</p>
<p>trap &#8220;stty echo ; exit&#8221; 1 2 15<br />
stty -echo<br />
read password<br />
stty echo<br />
trap &#8220;&#8221; 1 2 15</p>
<p>If the user press Ctrl+C in the password prompt, the normal stty mode will be restored</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: qmchenry</title>
		<link>http://www.tech-recipes.com/rx/278/hide-password-entry-in-bournebash-shell-script/comment-page-1/#comment-931</link>
		<dc:creator>qmchenry</dc:creator>
		<pubDate>Wed, 27 Oct 2004 10:44:49 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-931</guid>
		<description>Neat trick!  Beware that this is OS dependent.  It works on all the Linux flavors I&#039;ve tried but not a Solaris 8 system.  If you are writing a script to run on many platforms, the old school method above may be more generic.  But if writing a script for a specific system, this is a much slicker method.  Thanks for sharing!</description>
		<content:encoded><![CDATA[<p>Neat trick!  Beware that this is OS dependent.  It works on all the Linux flavors I&#8217;ve tried but not a Solaris 8 system.  If you are writing a script to run on many platforms, the old school method above may be more generic.  But if writing a script for a specific system, this is a much slicker method.  Thanks for sharing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: </title>
		<link>http://www.tech-recipes.com/rx/278/hide-password-entry-in-bournebash-shell-script/comment-page-1/#comment-929</link>
		<dc:creator></dc:creator>
		<pubDate>Wed, 27 Oct 2004 06:30:43 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-929</guid>
		<description>instead you can use -s option with read to hide the value like password

read -s secret</description>
		<content:encoded><![CDATA[<p>instead you can use -s option with read to hide the value like password</p>
<p>read -s secret</p>
]]></content:encoded>
	</item>
</channel>
</rss>
