title: bash screenshot script and writing url to file
body: <p>This is my code:</p>
  
  <pre><code>    #!/bin/bash
  DATE=`date +%Y-%m-%d\ %H:%M:%S`
  import -window root "$HOME/Desktop/1.png"
  python imgur.py &gt; "$HOME/Desktop/tekst.txt"
  mv "$HOME/Desktop/1.png" "$HOME/Desktop/screenshot $DATE.png"
  </code></pre>
  
  <p>It works when I run script from console. But I've also binded key.When I press it, everything is ok, except for text.txt. It's empty. Any ideas?</p>