Sfoglia il codice sorgente

trackchange.sh tries only once when server not answering

Thomas Buck 10 anni fa
parent
commit
bc7b17285a

BIN
PlayPauseiTunesInstacastVLC.scpt Vedi File


BIN
SongArtist.scpt Vedi File


BIN
SongLength.scpt Vedi File


BIN
SongLengthRemaining.scpt Vedi File


BIN
SongLyrics.scpt Vedi File


BIN
SongName.scpt Vedi File


+ 3
- 2
trackchange.sh Vedi File

@@ -21,9 +21,10 @@ if [ "$1" != "$lasttrack" ]; then
21 21
         cat /Users/thomas/.trackhistory >> /Users/thomas/.tmpfile
22 22
         echo "</pre><p><a href="http://xythobuz.de">Return...</a></p></body></html>" >> /Users/thomas/.tmpfile
23 23
 
24
-        scp /Users/thomas/.tmpfile zaphod:/var/www/lastmusic
25 24
         echo $1 > /Users/thomas/.lasttrack
26 25
         echo "<b>$1</b> by <b>$2</b> on <b>$3</b> at <i>${datum}</i>" >> /Users/thomas/.trackhistory
27 26
         tail -n 3 /Users/thomas/.trackhistory | tee /Users/thomas/.trackhistory
27
+        
28
+        scp /Users/thomas/.tmpfile zaphod:/var/www/lastmusic
28 29
     fi
29
-fi
30
+fi

Loading…
Annulla
Salva