<div dir="ltr">You can probably get around it by not using escript and just booting up a compiled beam that does what you want... "erl -noinput -noshell -s user_drv" seems to start a shell that can handle io:get_password(), so you could poke inside user_drv and see how to start up user_drv and your script without the shell.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 19, 2013 at 4:08 PM, Bryan Hughes <span dir="ltr"><<a href="mailto:bryan@go-factory.net" target="_blank">bryan@go-factory.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi Bob,<br>
    <br>
    Thanks for checking it out!  Guess not too many people are writing
    scripts that need to deal with passwords.  I will go ahead and
    submit it as a bug.<br>
    <br>
    Cheers,<br>
    Bryan<div><div class="h5"><br>
    <br>
    <div>On 3/19/13 4:01 PM, Bob Ippolito wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">R16B does not change anything for escript as far as
        I can tell.
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Tue, Mar 19, 2013 at 3:17 PM, Bob
            Ippolito <span dir="ltr"><<a href="mailto:bob@redivi.com" target="_blank">bob@redivi.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div dir="ltr">I see io:get_password() in my io module in
                R15B03, but it doesn't appear to work with escript
                because it uses the old 'user' rather than 'group' which
                doesn't understand the get_password io request. Haven't
                looked at R16B yet.
                <div>
                  <br>
                </div>
              </div>
              <div class="gmail_extra"><br>
                <br>
                <div class="gmail_quote">
                  <div>
                    <div>On Tue, Mar 19, 2013 at 2:04 PM,
                      Bryan Hughes <span dir="ltr"><<a href="mailto:bryan@go-factory.net" target="_blank">bryan@go-factory.net</a>></span>
                      wrote:<br>
                    </div>
                  </div>
                  <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    <div>
                      <div>
                        <div bgcolor="#FFFFFF" text="#000000"> Hi
                          Everyone,<br>
                          <br>
                          I found this old thread from 2009 about trying
                          to hide user input in an escript (e.g.
                          entering a password).<br>
                          <br>
                          <a href="http://erlang.org/pipermail/erlang-questions/2009-April/043311.html" target="_blank">http://erlang.org/pipermail/erlang-questions/2009-April/043311.html</a><br>
                          <br>
                          It concluded with:<br>
                          <blockquote type="cite">
                            <pre style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:start;font-variant:normal;text-transform:none;font-style:normal;font-weight:normal;word-spacing:0px">The problem seems to be that escript uses the old shell, which
does not support any way to control the terminal.

We'll have a look at escript for the next release and see whether
it would be possible to have it run with the standard shell.</pre>
                          </blockquote>
                          <br>
                          Does anyone know if this has been fixed.  I
                          looked through the docs and do not find
                          io:get_password/0, or any options for reading
                          stdin to not echo the characters back.<br>
                          <br>
                          Looking forward to meeting those of you
                          attending Erlang Factory in a couple of days.<br>
                          <br>
                          Cheers,<br>
                          B<span><font color="#888888"><br>
                              <br>
                              <div>-- <br>
                                <p style="font-size:12px"> Bryan Hughes<br>
                                  <b>Go Factory</b><br>
                                  <a href="http://www.go-factory.net" target="_blank">http://www.go-factory.net</a><br>
                                  <br>
                                  <i>"Art is never finished, only
                                    abandoned. - Leonardo da Vinci"</i><br>
                                </p>
                                <p><br>
                                </p>
                              </div>
                            </font></span></div>
                        <br>
                      </div>
                    </div>
                    _______________________________________________<br>
                    erlang-questions mailing list<br>
                    <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
                    <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
                    <br>
                  </blockquote>
                </div>
                <br>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
    </div></div><div><span class="HOEnZb"><font color="#888888">-- <br>
      </font></span><p style="font-size:12px"><span class="HOEnZb"><font color="#888888">
        Bryan Hughes<br>
        CTO and Founder / <b>Go Factory</b><br>
        <a href="tel:%28415%29%20515-7916" value="+14155157916" target="_blank">(415) 515-7916</a></font></span></p><div class="im"><br>
        <a href="http://www.go-factory.net" target="_blank">http://www.go-factory.net</a><br>
        <br>
        <i>"Art is never finished, only abandoned. - Leonardo da Vinci"</i><br>
      </div><p></p>
      <p><br>
      </p>
    </div>
  </div>

</blockquote></div><br></div>