[Discuss] cron question
Noel Burton-Krahn
noel at burton-krahn.com
Fri Apr 18 16:05:10 PDT 2008
When you run gnome-screensaver-command from your command-line, the
DISPLAY environment is set correctly and xauth will recognize that the
command comes from the owner of the screen.
cron jobs may run as your userid, but won't have the right DISPLAY
variable. You could try this in your crontab:
DISPLAY=:0 /usr/bin/gnome-screensaver-command --lock
On Fri, Apr 18, 2008 at 3:46 PM, Ronald Schouten <ron at atomeo.com> wrote:
> I want to setup a cron job that will lock my screensaver every hour.
> This is possible with the command:
>
> /usr/bin/gnome-screensaver-command --lock
>
> I can confirm that this works from the command line on my system.
> However, when using this as the command in crontab, nothing happens. I
> have verified that my syntax for scheduling a job is correct since
> substituting the command for another (touch foo.txt) works.
>
> Can anyone shed some light on this?
>
> Ron
> _______________________________________________
> Discuss mailing list
> Discuss at vlug.org
> http://ladybug.vlug.org/cgi-bin/mailman/listinfo/discuss
>
More information about the Discuss
mailing list