I wrote simple script which is running all the time and whenever the size of a file is changed it will write something like The size has changed to terminal but instead of terminal message, is it possible to actually get some prompt or some alert sound like in C?
Alert notification
bash;shell
In C you can output the BEL character '\a'. In a script you can do so with:echo -e '\a'If you don't get a sound with that, be sure to check that there is noblacklist pcspkrin your /etc/modprobe.d/blacklist.conf (and if there is comment it out and reboot).Alternatively, if you have a nice sound short sound file xyz.mp3, and have vlc installed, you can do:cvlc --no-one-instance --volume 100 --quiet --no-loop --no-repeat --play-and-exit xyz.mp3