summaryrefslogtreecommitdiff
path: root/mpc-flacinfo.sh
blob: b57929ee09feafe79a2e157d9a59d4830aa0be05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

USER="gueux"
HOST="gueux.org"
PORT="6600"
MUSIC_PATH="/home/music"
PRECOMMAND="export PERL5LIB=/home/gueux/lib/perl/lib/perl:/home/gueux/lib/perl/share/perl"
FLACINFO="bin/flacinfo"

file=$MUSIC_PATH/$(mpc -h "$HOST" -p "$PORT" current -f "%file%")

echo "$file"
echo "$PRECOMMAND && $FLACINFO \"$file\"" | ssh -T $USER@$HOST