# execution problem

**URL:** <https://community.unix.com/t/execution-problem/302629>\
**Category:** UNIX for Dummies Questions & Answers\
**Created:** [January 12, 2012, 5:22am UTC](https://community.unix.com/t/execution-problem/302629 "2012-01-12T05:22:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![esumiba](https://community.unix.com/letter_avatar/esumiba/32/6_22734026db12803ebb3e059622ac3534.png) [@esumiba](https://community.unix.com/u/esumiba)\
**Post date:** [January 12, 2012, 5:22am UTC](https://community.unix.com/t/execution-problem/302629/1 "2012-01-12T05:22:15Z")

</div>

Hi

i am using expect module and trying to login using following code.

ssh 127.0.0.1  
expect "word:"  
send "$password \n"

kindly let me know the login script using expect module

---

<div class="post-metadata">

**Author:** ![frappa](https://community.unix.com/letter_avatar/frappa/32/6_22734026db12803ebb3e059622ac3534.png) [@frappa](https://community.unix.com/u/frappa)\
**Post date:** [January 12, 2012, 4:35pm UTC](https://community.unix.com/t/execution-problem/302629/2 "2012-01-12T16:35:30Z")

</div>

hi,

have a look at discussion "Expect script - going in loops can't stop" in "The UNIX and Linux Forums \> Top Forums \> Shell Programming and Scripting"
