Can we set up a voice for disconnetion?
PM
ubuntu.bkn at gmail.com
Thu Oct 20 12:34:37 UTC 2011
> Make sure you have espeak package installed. The /dev/null redirection
> will hide any error messages.
>
The package is installed.
> To verify, type
> espeak "Internet connection may be down"
> on a command line.
>
Yes it speaks.
But in fact, that script is not working. Here is what I did:
Just copied the following line:
#!/bin/bash
ping -q -c 3 www.google.com > /dev/null
rc=$?
if [ ${rc} -ne 0 ]
then
espeak "Internet connection may be down" >/dev/null 2>&1
fi
in a file and named it as* alert.sh*. After this went to the terminal and
run::
*
sudo chmod +x alert.sh*
Disconnected the net but no sound came! What should I do?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20111020/77803d2f/attachment.html>
More information about the ubuntu-users
mailing list