title: Redirect output of Whatsapp bash script to file interactively for automation purpose
body: <p>Yowsup-cli is a library that can allow you to send message to whatsapp users,once authenticated.
  By the coommand </p>
  
  <p><code>yowsup-cli -a --interactive &lt;PHONE_NUMBER_HERE&gt; --wait --autoack --keepalive --config yowsup-master/src/yowsup-cli.config</code></p>
  
  <p>I can interactively send or receive messages.
  Once executed the command you get a prompt like </p>
  
  <p><code>MY_PHONE_NUMBER@s.whatsapp.net [27-12-2014 18:33]:THIS IS MY MESSAGE,TYPED ON MY PHONE. OPEN DOOR GARAGE
  Enter Message or command: (/available, /lastseen, /unavailable)
  </code>
  I'm a totally beginner, but I would like to redirect this content that gets printed on terminal to a file,to further analyze it or to write a script that search into this file keyword as "OPEN GARAGE DOOR", so i could automate something.
  This file obviously has to sync with the program output,but I don't know how to do.</p>
  
  <p><code>yowsup-cli -a --interactive &lt;PHONE_NUMBER_HERE&gt; --wait --autoack --keepalive --config yowsup-master/src/yowsup-cli.config &gt; /path/to/my_file</code>
   doesn't work</p>
  
  <p>Running Ubuntu 12.04.
  I know yowsup is a python library, but i don't know this language. I'm beginning learniing C and I would like to do that in <em>BASH</em>, or if not possible in C.
  Thanks</p>