I can access the remote server without problem and I would like to send `bwcli` command which is a CLI of Broadworks server. I am using a shell code to send the command. 

Normally if i want to enter the cli I type `bwcli` but it is not recognized when doing it remotely so I am sendig this `sudo -u bworks /usr/local/broadworks/bw_base/bin/bwcli` 

instead like this:

```
#! /usr/bin/expect

expect ":"

send "sudo -u bworks /usr/local/broadworks/bw_base/bin/bwcli\r"

expect ">"

send "?\r"

expect "AS_CLI>"

```

My playbook is done like this:

```
 -script: /home/ansible/playbooks/David/get_command.sh >> bwcli_login.log

```

When the playbook is ran it shows `OK=1 changed=1 unreachable=0 failed=0`.
So I am assuming that it works,but when I go to open "bwcli\_login.log" I find it empty.
This is only my first step in the code I would like when I enter the CLI the I send some other commands to retrieve some information for the server. And it is annoying that I am stuck at the first step :(
I appreciate if somebody can tell me why the file output file is empty? What I am doing wrong?