[Discuss] cron question

pw p.willis at telus.net
Fri Apr 18 16:09:23 PDT 2008


Ronald Schouten 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
> 

crontab -e

<enter editing mode default editor tends to be  vi>

@hourly /usr/bin/gnome-screensaver-command --lock


Peter


More information about the Discuss mailing list