This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rsync -rvt --delete -e "ssh -p 5252" --log-file=/var/log/backupdiario.log 192.168.1.1:/home /mnt/dados && echo 0 > /var/log/backupstatus || echo 1 > /var/log/backupstatus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sl4a | |
import time | |
droid = sl4a.Android() | |
def speak(text): | |
droid.ttsSpeak(text) | |
while droid.ttsIsSpeaking()[1] == True: | |
time.sleep(1) | |
def listen(): |