Show your Desktop Live


Recommended Posts

BE PATIENT! :p

Well the command 'import -w root ~/desktop.png' would take a screenshot of the entire window and put it in your home. I don't know how to use cron, but I'm sure someone could tell you how to make it so cron executes that command every so often.

Link to comment
Share on other sites

BE PATIENT! :p

Well the command 'import -w root ~/desktop.png' would take a screenshot of the entire window and put it in your home. I don't know how to use cron, but I'm sure someone could tell you how to make it so cron executes that command every so often.

well said; seriously man- it doesnt need 3 more posts...

Link to comment
Share on other sites

you could use something like this...

save this as script.pl

#!/usr/bin/perl
$res = "1280:1024"; # screen resolution
$file = "/tmp/ss.png"; #where you want the screenshot to be saved.

exec("import -window root -geometry $res -display servername:0 $file");

__END__

and then add this to /etc/crontab to run it every 2 minutes

*/2 * * * *    root    /path/to/script/script.pl

Link to comment
Share on other sites

how would I run it every 30 seconds or every minute?

I added it to crontab but so far I'm not seeing anything, how can I make sure its working right?

Edited by uniacid
Link to comment
Share on other sites

how would I run it every 30 seconds or every minute?

I added it to crontab but so far I'm not seeing anything, how can I make sure its working right?

Read in the man page of crontab..

Link to comment
Share on other sites

I read it, doesn't show any examples, just says how to list, remove, and edit crontab

I added it to my user but doesnt seem to be running

Edited by uniacid
Link to comment
Share on other sites

is there a service like www.camarades.com that will upload to their server instead of your own ftp? i don't have an ftp server :)

eh you dont have a web server? is that your site? (windcrestsystems), maybe you could do lycos or some free host that does ftp, thats all you need

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.