Hi

Is there any pure and native ruby way to spawn an interactive shell in *one
line* that can interacts with interactive *passwd* commands.

In python, this is the code

*python -c 'import pty; pty.spawn("/bin/sh")'*

Note: I tried all kind of methods like *system*, *exec*, *backticks*, ruby
*pty* nothing works

Why I need that?
Assume I've a remote shell via netcat and I need to change the user
password using *passwd* commandline

Thanks

-- 


*Senior Information Security Engineer OSCE, GWAPT, **CEH, **OSCP, **RHCE, *
*CCNA, **MCITP-EA*
(supressed text/html)
Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>