Browse Source

trackchange.sh tries only once when server not answering

Thomas Buck 10 years ago
parent
commit
bc7b17285a
7 changed files with 3 additions and 2 deletions
  1. BIN
      PlayPauseiTunesInstacastVLC.scpt
  2. BIN
      SongArtist.scpt
  3. BIN
      SongLength.scpt
  4. BIN
      SongLengthRemaining.scpt
  5. BIN
      SongLyrics.scpt
  6. BIN
      SongName.scpt
  7. 3
    2
      trackchange.sh

BIN
PlayPauseiTunesInstacastVLC.scpt View File


BIN
SongArtist.scpt View File


BIN
SongLength.scpt View File


BIN
SongLengthRemaining.scpt View File


BIN
SongLyrics.scpt View File


BIN
SongName.scpt View File


+ 3
- 2
trackchange.sh View File

21
         cat /Users/thomas/.trackhistory >> /Users/thomas/.tmpfile
21
         cat /Users/thomas/.trackhistory >> /Users/thomas/.tmpfile
22
         echo "</pre><p><a href="http://xythobuz.de">Return...</a></p></body></html>" >> /Users/thomas/.tmpfile
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
         echo $1 > /Users/thomas/.lasttrack
24
         echo $1 > /Users/thomas/.lasttrack
26
         echo "<b>$1</b> by <b>$2</b> on <b>$3</b> at <i>${datum}</i>" >> /Users/thomas/.trackhistory
25
         echo "<b>$1</b> by <b>$2</b> on <b>$3</b> at <i>${datum}</i>" >> /Users/thomas/.trackhistory
27
         tail -n 3 /Users/thomas/.trackhistory | tee /Users/thomas/.trackhistory
26
         tail -n 3 /Users/thomas/.trackhistory | tee /Users/thomas/.trackhistory
27
+        
28
+        scp /Users/thomas/.tmpfile zaphod:/var/www/lastmusic
28
     fi
29
     fi
29
-fi
30
+fi

Loading…
Cancel
Save