Re: Run cornjobs only when a user is logged

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 01/05/2016 12:36 PM, Richard wrote:


------------ Original Message ------------
Date: Tuesday, January 05, 2016 11:26:01 +0000
From: "C.L. Martinez" <carlopmart@xxxxxxxxx>

Hi all,

   Is it possible to run cronjobs configured by a user to run only
when he/she is logged (via GDM/KDM,etc.)?


Seems a little antithetical, so you may want to provide more details
on what the issues are and what you are trying to accomplish.

That said, the cron job being run could include a bit of code at the
top to check the user's logged in status and run or abort
accordingly.

A different approach would be to use cron.deny to keep a user from
setting up cron jobs, and instead have "at" jobs spawned when the
user logs in.


Thanks Richard. I need to modify xrandr options for a nvidia graphics adapter depending which user is logged.

It could be easy using "Startup applications" under Gnome, but gamma settings are modified by the web browser or vlc...

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux