How can take screenshot via a script running as a service
Hi all,
i am using ubuntu 11.04
I have a python script running as a service. I started it like "sudo service python_script start"
I want to take screenshot any login user. i tried to run "import -window root /tmp/screenshot.png" command in my python_script but no reaction. Also tries 'su active_user -c import -window root /tmp/screenshot.png nothing changed.
there is no problem when I run it like "sudo python_script" when logged in as a user but when i run it like service there is no reaction.
How can i achieve this ? There is a way ?
Thnks
|