<p>I want to take a screenshot via a python script and unobtrusively save it.</p>

<p>I'm only interested in the Linux solution, and should support any X based environment.</p>

```
```
import ImageGrab
img = ImageGrab.grab()
img.save('test.jpg','JPEG')
```
```
this requires Python Imaging Library