From 7926ccf1621388cb59a3e431de7903230b29599f Mon Sep 17 00:00:00 2001 From: Andrew Davidson Date: Thu, 11 Dec 2014 08:11:19 -0500 Subject: [PATCH] intial commit --- amdshot.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 amdshot.sh diff --git a/amdshot.sh b/amdshot.sh new file mode 100644 index 0000000..3ac0a11 --- /dev/null +++ b/amdshot.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +# start a server with a specific DISPLAY +vncserver :11 -geometry 1024x768 + +# start firefox in this vnc session +firefox -display :11 + +# read URLs from a data file in a loop +count=1 +while read url +do + # send URL to the firefox session + firefox --height 768 --width 1024 --display :11 $url + + # take a picture after waiting a bit for the load to finish + sleep 20 + import -window root image$count.jpg +done < url_list.txt + +# clean up when done +vncserver -kill :11