[CentOS] Run cornjobs only when a user is logged
C.L. Martinez
carlopmart at gmail.comWed Jan 6 09:18:36 UTC 2016
- Previous message: [CentOS] Run cornjobs only when a user is logged
- Next message: [CentOS] A query on graphic console
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 at gmail.com> >> >> 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...
- Previous message: [CentOS] Run cornjobs only when a user is logged
- Next message: [CentOS] A query on graphic console
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list