Changeset 39452be for gutenbach-queue
- Timestamp:
- Dec 12, 2009, 5:41:52 PM (15 years ago)
- Branches:
- master, debian, mac, no-cups, web
- Children:
- 8de196a
- Parents:
- 7f94ef0
- git-author:
- Jessica B. Hamrick <jhamrick@…> (12/12/09 17:41:52)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (12/12/09 17:41:52)
- Location:
- gutenbach-queue
- Files:
-
- 11 added
- 3 deleted
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
gutenbach-queue/debian/lib/kill-gutenbach-queue
r0b5842c r39452be 2 2 3 3 echo "Stopping view-gutenbach-queue..." 4 killall -q "/usr/lib/ sipbmp3/view-gutenbach-queue"4 killall -q "/usr/lib/gutenbach/queue/view-gutenbach-queue" 5 5 echo "Stopping build-gutenbach-queue..." 6 killall -q "/usr/lib/ sipbmp3/build-gutenbach-queue"6 killall -q "/usr/lib/gutenbach/queue/build-gutenbach-queue" 7 7 echo "Stopping queue..." 8 killall -q "/usr/lib/ sipbmp3/queue"8 killall -q "/usr/lib/gutenbach/queue/queue" 9 9 echo "Stopping exiftool..." 10 10 killall -q "/usr/bin/exiftool" -
gutenbach-queue/debian/lib/queue
r7f94ef0 r39452be 3 3 found_current= 4 4 5 if [ -e "/var/run/ sipbmp3/queue_times" ]; then6 rm "/var/run/ sipbmp3/queue_times"5 if [ -e "/var/run/gutenbach/queue_times" ]; then 6 rm "/var/run/gutenbach/queue_times" 7 7 fi 8 8 9 cd /var/spool/lpd/ sipbmp3/9 cd /var/spool/lpd/gutenbach/ 10 10 for i in $(ls . | grep ^hf); do 11 11 done=$(cat "$i" | grep done) 12 12 if [ ! -n "$done" ]; then 13 13 timestamp=$(cat "$i" | grep ^job_time= | sed 's/.*=//') 14 echo "$timestamp:$i" >> /var/run/ sipbmp3/queue_times14 echo "$timestamp:$i" >> /var/run/gutenbach/queue_times 15 15 fi 16 16 done 17 17 18 if [ -e /var/run/ sipbmp3/queue_times ]; then19 for i in $(sort /var/run/ sipbmp3/queue_times); do18 if [ -e /var/run/gutenbach/queue_times ]; then 19 for i in $(sort /var/run/gutenbach/queue_times); do 20 20 i=$(echo "$i" | sed 's/.*://') 21 21 prefix="df"${i:2} … … 25 25 user=${user:2} 26 26 27 if [ -e /var/run/ sipbmp3/exiftool_data ]; then28 rm /var/run/ sipbmp3/exiftool_data27 if [ -e /var/run/gutenbach/exiftool_data ]; then 28 rm /var/run/gutenbach/exiftool_data 29 29 fi 30 30 31 exiftool "$song" >> /var/run/ sipbmp3/exiftool_data32 title=$(cat /var/run/ sipbmp3/exiftool_data | grep "^Title " | sed 's/.*: //')33 artist=$(cat /var/run/ sipbmp3/exiftool_data | grep "^Artist " | sed 's/.*: //')31 exiftool "$song" >> /var/run/gutenbach/exiftool_data 32 title=$(cat /var/run/gutenbach/exiftool_data | grep "^Title " | sed 's/.*: //') 33 artist=$(cat /var/run/gutenbach/exiftool_data | grep "^Artist " | sed 's/.*: //') 34 34 35 35 if [ -z "$found_current" ]; then … … 37 37 host=${host:2} 38 38 filenm="$(cat $i | grep "^filenames" | sed -e 's/filenames=//')" 39 album=$(cat /var/run/ sipbmp3/exiftool_data | grep "^Album " | sed 's/.*: //')39 album=$(cat /var/run/gutenbach/exiftool_data | grep "^Album " | sed 's/.*: //') 40 40 echo "$user@$host is currently playing: " 41 41 echo "$filenm" -
gutenbach-queue/debian/lib/view-gutenbach-queue
r0b5842c r39452be 1 1 #!/bin/bash 2 2 3 daemon --running --name gutenbach-queue -F /var/run/ sipbmp3/gutenbach-queue.pid3 daemon --running --name gutenbach-queue -F /var/run/gutenbach/gutenbach-queue.pid 4 4 if [ "$?" == 0 ]; then 5 watch -t -n 1 cat /var/run/ sipbmp3/current_queue5 watch -t -n 1 cat /var/run/gutenbach/current_queue 6 6 else 7 7 echo "The gutenbach queue daemon is not running. Please start it at /etc/init.d/gutenbach-queue."
Note: See TracChangeset
for help on using the changeset viewer.