Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 795 Bytes

File metadata and controls

28 lines (19 loc) · 795 Bytes

Advanced usage

Notification in cron

Cronjobs are usually cli script. But JoliNotif's Unix/Linux notifiers are gui applications. This means you need to specify the display where the notification will be sent.

You can achieve this by setting the DISPLAY environment variable in your cronjob:

* * * * * env DISPLAY=:0 php /path/to/your/script

Note: On some system, you may also need to run xhost +local:. For more information, please have a look at https://help.ubuntu.com/community/CronHowto#GUI_Applications

Next readings

Previous pages: