Hi I've the following script that make an ssh login to my server.

```
  spawn ssh presnetwork@192.168.244.14
                              expect "*(yes/no)?"
                             send "yes"
                                expect  "password:"
                                  send  "pwd\n"
                              close

```

it works fine but it doesn't pass 'pwd' value to system, so script goes timeout and quit.
Any suggestions?