LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 03-21-2011, 06:19 AM   #1
tasol
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
"how to capture automatic screen shots on ubuntu 10.04 LTS & fedora 10"


Hi,

I am using 10 linux machine which has ubuntu 10.04 LTS & fedora 10 installed. My problem is that I want to take automatic screenshot in every 10 minute & it'll store the screenshot to remote location that is not accessible by normal user.

Please share the details if anyone having..

Thanks,
Tasol
 
Old 03-21-2011, 07:43 AM   #2
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,387

Rep: Reputation: 174Reputation: 174
http://tips.webdesign10.com/how-to-t...h-ubuntu-linux

here you have described how to take screenshot from terminal
 
Old 03-22-2011, 12:12 AM   #3
tasol
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Hi Yooy,

Thanks for reply, but I already gone through this stuff, and I create one script that run via terminal fine but when I put it for cron it fails to run.

The script is like:

Quote:
#!/bin/bash
#import -window root -display Slacker:2 /home/nesman/public_html/screenshots/`date +%a%d%b%H%M`.jpg
i=0
DISPLAY=:0
export DISPLAY
HOME=/home/tasol
export HOME

while [ $i -lt 1 ]; do
#import -window root -geometry 1024x768 -display localhost:0 -silent /home/nesman/bin/screenshots/`date +%b%d%a%H%M`-$i.jpg
import -window root -geometry 1024x768 -silent /home/tasol/screenshots/`date +%b%d%a%H-%M`-$i.jpg

#sleep 5
i=$((i+1))
done
and I put one cron that runs every 10 min,
Quote:
*/10 * * * * /home/tasol/Desktop/script.sh
If you find better script regarding this problem, Please post it...

Thanks,
Tasol
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Is the Release of Ubuntu 10.04 LTS "Lucid Lynx" Delayed? LXer Syndicated Linux News 0 04-29-2010 09:30 PM
LXer: Much Awaited And Fully Loaded Ubuntu 10.04 LTS "Lucid Lynx" Released! LXer Syndicated Linux News 0 04-29-2010 08:30 PM
Fedora Core 2: Screen Resolution can not change from "800X600" to "1024X 768" suhaimi_sj Fedora - Installation 18 12-17-2009 03:29 AM
automatic mail of "Last User Login Logs" & "AIX Logs" nishith AIX 3 12-04-2009 12:42 PM
LXer: Ubuntu 8.04.2 Hardy Heron LTS Screen Shots LXer Syndicated Linux News 0 01-25-2009 01:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration