[ubuntu-uk] Cron task?
yothsoggoth at gmail.com
Tue May 8 20:40:02 UTC 2012
I'm not sure if there's an easy way to do this.
You could write a little script that checks if the user has been idle for a certain amount of time, if so run your program. Then have cron run this program every minute or something?
I think "who -Hu" will list all logged in users and how long they've been idle for.
I'm not sure if this is the right type of idle though, and as I have only the one user I can't test it because to run the command I'm never idle.
Hope that helps a little,
Sent via BlackBerry® from Orange
From: Bill Baker <boosys at gmail.com>
Sender: ubuntu-uk-bounces at lists.ubuntu.com
Date: Tue, 08 May 2012 21:14:33
To: UK Ubuntu Talk<ubuntu-uk at lists.ubuntu.com>
Reply-To: boosys at gmail.com, UK Ubuntu Talk <ubuntu-uk at lists.ubuntu.com>
Subject: [ubuntu-uk] Cron task?
I'm using Feh [a cli image viewer] trying to replicate the old "Pictures
Folder" screen saver. By using "feh -rzZFYD7 /home/[me]/Pictures"
I obtain 99% of the functionality [including directory recursion -
but have to fire it manually.
Is there anyway to set a cron job to start it automatically after x
amount of time of idle kbd/mouse.
All I want is to go get a cup of coffee and get back to find the
machine displaying random samples of my photos.... why so hard :(
Bill B. [SuperEngineer]
-Registered Linux User 523667-
-Registered Ubuntu User 32366-
-----Free as in Freedom------
ubuntu-uk at lists.ubuntu.com
More information about the ubuntu-uk