[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Run script after inactivity in Ubuntu

Posted on 2012-09-18
Medium Priority
Last Modified: 2012-09-18
I would like to run a bash script in Ubuntu 12.04 after X amount of time of inactivity, essentially the same way a screen saver works except that a script is ran instead of a screensaver. Is this possible to do?
Question by:bhilgenkamp
1 Comment

Accepted Solution

bhilgenkamp earned 0 total points
ID: 38411188
After an hour of searching I find something within 2 minutes of posting this...
The command xprintidle seems to be able to get me going. It just reports the idle time of keyboard or mouse.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month19 days, 17 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question