On 18 Jan 1999, lantz moore wrote:
> dale>    Write simple program (or script) that your screensaver can
> dale> call to send SIGSTOP and SIGCONT to your long running process.
> 
> Jeffrey> That's a good idea. How does one get the screensaver to call a
> Jeffrey> script? I'm running the default screensaver from Accelerated X.
> 
> if you run the xautolock package you could do something like the
> following:
> 
> xautolock -time 1 -locker ~/bin/mylock
> 
> this would call ~/bin/mylock after 1 minute of inactivity.  mylock could
> look like:
> 
> #!/bin/sh
> 
> killall -STOP program
> xlock
> killall -CONT program
> 
> and that should do what you want...

Shouldn't it be the other way around (swap STOP and CONT)? You want to
start your program wehen the machine gets idle (that's wehen the
screensaver starts) and stop it when someone unlocks the screensaver.

- Felix
-- 
Felix Rauch                      | Email: [EMAIL PROTECTED]
Institute for Computer Systems   | Homepage: http://www.cs.inf.ethz.ch/~rauch/
ETH Zentrum / RZ H15             | Phone: ++41 1 632 7489
CH - 8092 Zuerich / Switzerland  | Fax:   ++41 1 632 1307

-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]

Reply via email to