Re: user can exec the xset, in his crontab, its 100% failure
Hi.
On Sat, 21 Mar 2015 05:02:53 -0400
Gene Heskett <gheskett@wdtv.com> wrote:
> Greetings;
>
> Running a wheezy based linux here.
>
> While I as a user can use xset to remind the system of the monitors dpms
> controls, an identical entry in my crontab results in an email that it
> could not open my 0:0 display.
Since cron should strip out every environment variable from whatever
its told to run - that's to be expected.
> So I cannot "script" this reminder.
You can. All you need to do is to define the needed DISPLAY and
XAUTHORITY in the script itself.
I.e.
#!/bin/sh
export DISPLAY=:0.0
export XAUTORITY=<your XAuthority goes here>
xset +foo -bar
Reco
Reply to: