Author Topic: [SOLVED] How Can I Auto-Execute An Application After 10 Minutes?  (Read 314 times)

Offline George Underwood Edwards

  • Full Member
  • ***
  • Posts: 243
  • The G.U.E Institute of Technology
    • G.U.E Institute of Technology
Is there a way to auto-execute a program after a period of computer inactivity, similar to the screensaver effect? If I don't type or move the mouse for 10 minutes a program will auto-run.

Is there a way to do this???
« Last Edit: October 21, 2012, 04:36:57 PM by George Underwood Edwards »
"He who climbs the steps of knowledge stands out among common men like a blueberry in a pan of milk."
 
My Current Location: In an open field west of a white house, with a boarded front door.

Offline Vorteggs

  • Hero Member
  • *****
  • Posts: 2411
Re: How Can I Auto-Execute An Application After 10 Minutes?
« Reply #1 on: October 21, 2012, 09:04:16 AM »
May be you'll find useful information here:
http://coderrr.wordpress.com/2008/04/20/getting-idle-time-in-unix/

Searching in Google by monitor mouse and keyboard inactivity Linux I found some more.

Offline George Underwood Edwards

  • Full Member
  • ***
  • Posts: 243
  • The G.U.E Institute of Technology
    • G.U.E Institute of Technology
Re: How Can I Auto-Execute An Application After 10 Minutes?
« Reply #2 on: October 21, 2012, 09:34:23 AM »
Thnx! That's a good start...   8)
"He who climbs the steps of knowledge stands out among common men like a blueberry in a pan of milk."
 
My Current Location: In an open field west of a white house, with a boarded front door.

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10662
  • MLUs Forever!
Re: How Can I Auto-Execute An Application After 10 Minutes?
« Reply #3 on: October 21, 2012, 10:07:31 AM »
Is there a way to auto-execute a program after a period of computer inactivity, similar to the screensaver effect? If I don't type or move the mouse for 10 minutes a program will auto-run.

Is there a way to do this???

If using KDE the function is available under Hardware - Power Management

It appears to work OK ......  did one test with it ...



« Last Edit: October 21, 2012, 10:19:02 AM by Just17 »
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline Vorteggs

  • Hero Member
  • *****
  • Posts: 2411
Re: How Can I Auto-Execute An Application After 10 Minutes?
« Reply #4 on: October 21, 2012, 11:12:43 AM »
Mais...

Just17,
Explain in more details please how we could do it?

I couldn't find the way (InMLU here you know ;D)

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10662
  • MLUs Forever!
Re: How Can I Auto-Execute An Application After 10 Minutes?
« Reply #5 on: October 21, 2012, 02:05:39 PM »
Mais...

Just17,
Explain in more details please how we could do it?

I couldn't find the way (InMLU here you know ;D)

KDE CC - Hardware - Power Management

First item on left .....  Energy Savings Settings

Last Item on page ..... Run Script

Tick the item, put the path to the script in the box, and select the number of minutes of inactivity before the script should run.

Apply.

Done.

Make sure the script is set to run before any of the other settings kick in .....  I haven't tested it other than this way.

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline George Underwood Edwards

  • Full Member
  • ***
  • Posts: 243
  • The G.U.E Institute of Technology
    • G.U.E Institute of Technology
Re: How Can I Auto-Execute An Application After 10 Minutes?
« Reply #6 on: October 21, 2012, 03:52:43 PM »
Cool! This does exactly what I want to do.  ;D ;D ;D

« Last Edit: October 21, 2012, 04:03:02 PM by George Underwood Edwards »
"He who climbs the steps of knowledge stands out among common men like a blueberry in a pan of milk."
 
My Current Location: In an open field west of a white house, with a boarded front door.

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10662
  • MLUs Forever!
Re: How Can I Auto-Execute An Application After 10 Minutes?
« Reply #7 on: October 21, 2012, 04:02:41 PM »
Cool! This is closer to what I want to do. Need to tweak it a bit. 8)

Is there a bash script command to simulate clicking a file? I know the one to execute a jar file, but I need to execute a non-java file.

I don't understand ......  if you want to run a script after X minutes then just locate the script and its path will go into the box.

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline George Underwood Edwards

  • Full Member
  • ***
  • Posts: 243
  • The G.U.E Institute of Technology
    • G.U.E Institute of Technology
Re: How Can I Auto-Execute An Application After 10 Minutes?
« Reply #8 on: October 21, 2012, 04:04:27 PM »
Cool! This is closer to what I want to do. Need to tweak it a bit. 8)

Is there a bash script command to simulate clicking a file? I know the one to execute a jar file, but I need to execute a non-java file.

I don't understand ......  if you want to run a script after X minutes then just locate the script and its path will go into the box.

Ignore it. I didn't have a script set correctly, but it's working now!

Thnx!
"He who climbs the steps of knowledge stands out among common men like a blueberry in a pan of milk."
 
My Current Location: In an open field west of a white house, with a boarded front door.