How to sound audible bell from crontab

Posted by user1526251 on Stack Overflow See other posts from Stack Overflow or by user1526251
Published on 2012-09-26T21:35:47Z Indexed on 2012/09/26 21:37 UTC
Read the original article Hit count: 391

Filed under:
|

The command line:

/bin/echo -e "\007"

in bash will ring the bell. With the line:

          • /bin/echo -e "\007"

in my crontab I expected the bell to ring every minute, but it's silent. I know crontab is working because the line:

          • /bin/touch $HOME/jkjkjk

updates the file jkjkjk every minute as it should. I found a posting some years ago suggesting that standard output should be directed to /dev/tty1 in crontab. But the line:

          • /bin/echo "\007" >/dev/tty1

Still fails. What to try next?

© Stack Overflow or respective owner

Related posts about audio

Related posts about crontab