Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Maybe you would have better luck using xwd which then has to be converted to jpg.....
#stop time max is 2359
echo "Stop at $stop"
while [ $now -lt $stop ] ; do
# /usr/bin/import -window root image$num.jpg
/usr/bin/X11/xwd -display :0 -root >image$num.xwd
/usr/bin/convert image$num.xwd image$num.jpg
#set the sleep time in seconds
rm -f *.xwd
#this gets rid of the xwd files