Arquivo da tag: crontab

Linux Crontab – Running Server-Based Applications

Cron does not run under the server therefore it cannot know the environmental variable necessary to be able to start an server application so they will have to be defined. One can use a program like xuserrun to do it:

17 02 * ... /usr/bin/xuserrun /usr/bin/xclock

Or then can be defined manually (echo $DISPLAY will give the current DISPLAY value):

17 02 * ... env DISPLAY=:0 /usr/bin/xclock

If done through say SSH, permission will need be given:

Continuar lendo