title: Bash script for taking a screenshot, renaming and moving
body: <p>First bash script and I'm running into some issues. I want to take a screenshot, then change the name of the .png to a random number (so that pictures don't overwrite). After it's renamed I want to move the picture to my dropbox folder.</p>
  
  <p>This is what I've got:</p>
  
  <pre><code>#!/bin/bash
  
  #Take screenshot
  import -window root $HOME/screenshot.png
  
  #Move to dropbox folder
  mv $HOME/screenshot.png $HOME/Dropbox/Max-Max/$RANDOM.png
  </code></pre>
  
  <p>When I run it dropbox is getting some kind of something because my taskbar icon indicates a file transfer. When I open up the folder however, nothing's there.</p>
  
  <p>Thanks for the help.</p>