title: Take picture from webcam using linux command line (bash)
body: <p>I am well aware that there is "exactly" the <a href="https://stackoverflow.com/questions/1516191/take-picture-using-webcam-from-command-line">same question</a> already asked, but it seems the user that posted the question initially never took an interest in the question, and the answers all were for windows systems. </p>
  
  <p>I want to take a picture with the webcam every <code>N time units</code> and store it to <code>/tmp/somefolder/</code> for further use with other tools and only keep the <code>last M images</code>.  </p>
  
  <p>The main problem is taking the picture to start with, the rest i would have pretty much covered, would be glad for any suggestions.
  OS: Ubuntu 10.04 x86_64
  Webcam: MS LifeCam VX2000 and/or Logitech C210 (both working with cheese)</p>