[clue-tech] scripted screenshots
David L. Willson
DLWillson at TheGeek.NU
Tue May 8 16:24:18 MDT 2007
I think I see why it's not running from crontab.
This was my cronline:
* * * * * scrot
This IS my cronline:
* * * * * scrot >> ~/scrot.log 2>&1
Now, I have scrot.log full of:
giblib error: Can't open X display. It *is* running, yeah?
Hmmm... Why don't I have a mail-queue? Must be an Ubuntu-ism...
Let's try setting the DISPLAY. That works. Let's try it in crontab.
That works, too. Here's my current, working cronline:
* * * * * DISPLAY=:0 scrot >> ~/scrot.log 2>&1
On Tue, 2007-05-08 at 12:17 -0800, Adam Bultman wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> I can't get it to work from a cron job, but:
>
> DATE=`date "%Y-%m-%d-%H-%M` ; import -window root /tmp/screen-$DATE.jpg
>
> would use imagemagick to grab a screenshot anytime you wanted. A
> simple shell or perl script running in a window would work fine. If
> you could manage to work out how to take a screeny from cron, you'd be
> set.
>
> Adam
>
>
>
> erik at ezolan.com wrote:
> >> I want to take a screenshot every ten seconds or minute or
> >> whatever, and store it in a folder without any disruption of what
> >> I'm doing, so that later, when I try to figure out what the f* I
> >> did all day long, I have some sort of a record.
> >>
> >> Any idears?
> >
> > Hm an interesting idea. I poked around and found this page:
> > http://tips.webdesign10.com/how-to-take-a-screenshot-on-ubuntu-linux
> >
> >
> > So I went and tried the Imagemagick route. It has a ton of
> > features, but I couldn't figure out how to make it just take the
> > screenshot. It wanted me to mouse click on the screen ever time.
> >
> > I think scrot is more what you're looking for. It doesn't have many
> > features, but it will take a screenshot without any prompting from
> > the user. The only problem I had with it was that it would 'ding'
> > when it took a screenshot.
> >
> > Toss that baby into a script for timing and naming of screenshots,
> > turn off dings in the console, and you should be set.
> >
> > _______________________________________________ clue-tech mailing
> > list clue-tech at cluedenver.org
> > http://www.cluedenver.org/mailman/listinfo/clue-tech
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGQNrTdftsbvGFaP4RAvOvAKCu2Qj9eOKuzjKo0MWmJkNg2JbkugCgtkEV
> ddeeIywylbIN7civjhUSWeQ=
> =NyBb
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> clue-tech mailing list
> clue-tech at cluedenver.org
> http://www.cluedenver.org/mailman/listinfo/clue-tech
More information about the clue-tech
mailing list