Results 1 to 4 of 4

Thread: Imagemagick automatic Screenshots script PROBLEM

Threaded View

  1. #1
    Join Date
    Aug 2008
    Ubuntu 10.10 Maverick Meerkat

    Imagemagick automatic Screenshots script PROBLEM

    I found somewhere on internet this script for taking screenshots of desktop every 5 minutes:

    #! /bin/bash
    if [ $1 ]; then
    appenddate=_$(date +%d%b%y-%N)
    while [ 1 -eq 1 ]; do
    import -window root ~/screenshot$appenddate.png
    sleep 5m
    I've put it in startup, made it executable and it is working, but not quite right?
    Actually it is taking screenshot every 5 minutes but it's not appending a date to a filename so it's constantly overwriting old one and all that is left is just one file: screenshot.png in my home folder.

    I've tried a few changes but I'm afraid I'm not very skilled in this. If anyone knows what is wrong with this script I would be grateful.
    Last edited by niko32; February 19th, 2011 at 07:22 PM.

Tags for this Thread


Posting Permissions

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