The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

Views: 1,383     Votes:  3 
Tags: sound   cron   microphone   soundcard   speakers  
Link: 🔍 See Original Answer on Ask Ubuntu 🔗

URL: https://askubuntu.com/q/1045335
Title: 17.10 No sound from cron jobs
ID: /2018/06/10/17.10-No-sound-from-cron-jobs
Created: June 10, 2018    Edited:  June 10, 2018
Upload: November 24, 2022    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


As per this answer: Can I use cron to chime at top of hour like a grandfather clock?6 you need to export an environment variable before playing sounds in your cron script:

export XDG_RUNTIME_DIR="/run/user/1000"
⇧ Help using crontab to play a sound gedit "Manage External Tools" menu option doesn't appear  ⇩