Results 1 to 9 of 9

Thread: Take a screenshot every 20 seconds or so

  1. #1
    Join Date
    Oct 2007
    Location
    UK
    Beans
    484
    Distro
    Ubuntu 9.10 Karmic Koala

    Take a screenshot every 20 seconds or so

    I would like to take a screenshot every 20 seconds or so and save it to a folder behind the scenes. Is this possible, if so, how?

    Thanks,
    Tom
    Lucid Beta 2 powered Studio 15 (Core 2 Duo 2.0GHz, 3 GB RAM, HD 3450) & Windows XP powered Scaleo E (Celeron D 3.06GHz, 1.5GB RAM, Intel GMA 915G). Please see Ubuntu Tutorials (my YouTube channel).

  2. #2
    Join Date
    Nov 2006
    Location
    40.31996,-80.607213
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Take a screenshot every 20 seconds or so

    You could write a shell script:
    Code:
    #!/bin/bash
    
    while true; do
        scrot ~/screenshots/%M-%S.png
        sleep 20
    done
    
    exit 0
    "Security lies within the user of who runs the system. Think smart, live safe." - Dr Small
    Linux User #441960 | Wiki: DrSmall

  3. #3
    Join Date
    Oct 2007
    Location
    UK
    Beans
    484
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Take a screenshot every 20 seconds or so

    It beeps every time. Can I stop it from doing that?

    Thanks,
    Tom
    Lucid Beta 2 powered Studio 15 (Core 2 Duo 2.0GHz, 3 GB RAM, HD 3450) & Windows XP powered Scaleo E (Celeron D 3.06GHz, 1.5GB RAM, Intel GMA 915G). Please see Ubuntu Tutorials (my YouTube channel).

  4. #4
    Join Date
    Oct 2007
    Location
    USA - Indiana
    Beans
    557
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Take a screenshot every 20 seconds or so

    Are you spying on someone? lol... is it a system beep or speakers beeping?

  5. #5
    Join Date
    Nov 2006
    Location
    40.31996,-80.607213
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Take a screenshot every 20 seconds or so

    Quote Originally Posted by anotherdisciple View Post
    Are you spying on someone? lol... is it a system beep or speakers beeping?
    It's a system beep. I know, because it does it on mine. But I dunno how to disable the pcspkr.
    "Security lies within the user of who runs the system. Think smart, live safe." - Dr Small
    Linux User #441960 | Wiki: DrSmall

  6. #6
    Join Date
    Oct 2007
    Location
    UK
    Beans
    484
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Take a screenshot every 20 seconds or so

    No, it's an experiment of mine. I like to film myself coding then put it into a timelapse.

    Anyways I decided to compile from source and comment out 'XBell' in main.c. Great. 'cept I can't seem to compile it. Could someone point instructions. I've configured fine, then make, then sudo make install, are there more steps or something?
    Lucid Beta 2 powered Studio 15 (Core 2 Duo 2.0GHz, 3 GB RAM, HD 3450) & Windows XP powered Scaleo E (Celeron D 3.06GHz, 1.5GB RAM, Intel GMA 915G). Please see Ubuntu Tutorials (my YouTube channel).

  7. #7
    Join Date
    Apr 2006
    Location
    Michigan
    Beans
    55
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Take a screenshot every 20 seconds or so

    I ran the script, and it does not make a beep for me.

  8. #8
    Join Date
    Oct 2007
    Location
    UK
    Beans
    484
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Take a screenshot every 20 seconds or so

    Okays, I found that temporarily disabling the pcspkr module works for me:

    rmmod pcspkr

    Thanks for everyone's help. It now works fine.
    Lucid Beta 2 powered Studio 15 (Core 2 Duo 2.0GHz, 3 GB RAM, HD 3450) & Windows XP powered Scaleo E (Celeron D 3.06GHz, 1.5GB RAM, Intel GMA 915G). Please see Ubuntu Tutorials (my YouTube channel).

  9. #9
    Join Date
    Jan 2008
    Beans
    4,757

    Re: Take a screenshot every 20 seconds or so

    To remove the system speaker module, type in the terminal:
    Code:
    sudo modprobe -r pcspkr
    Run the script again, and with a bit of blind faith. It should be quiet now

    To make this change permanent, edit your blacklist file.
    Code:
    sudo gedit /etc/modprobe.d/blacklist
    and add the line
    Code:
    blacklist pcspkr
    at the bottom.

    Regards
    Iain

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •