summaryrefslogtreecommitdiff
path: root/mpc-flacinfo.sh
blob: efcbd4634e04648317eb8b26a803e10caba8dc97 (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 && echo \"'$file'\" && $FLACINFO \"$file\"" | ssh -T $USER@$HOST