On 15 nov. 2012, at 16:43, LuKreme wrote:

> while true; do
> say “This computer is stolen and the IP has been reported to the 
> authorities.”;
> say ”Return computer to {my address} and no further actions will be taken.”;
> sleep 60;
> done

What I have decided to do is to run a script that will test port 22 on the 
stolen computer and arrange for my computer here to get me out of bed. This is 
what I have :

nc -z stolenip 22 > /dev/null
if [ $? -eq 0 ]
then
        sudo osascript -e "set Volume 10"
        while true; do
say "Stolen computer on line.";
sleep 10;
done
else
        echo "SSHdown"
fi

But that won't do what I want... I need the IP test to run every 30 seconds, 
and the spoken line to be repeated every 10 seconds if the stolen computer is 
on line.

Could anyone find a moment to alter the script to do that?

Thanks!

AB

_______________________________________________
MacOSX-talk mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/macosx-talk

Reply via email to