summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgueux <gueux@gueux.org>2010-07-06 15:39:31 +0000
committergueux <gueux@gueux.org>2010-07-06 15:39:31 +0000
commit2f0c0ce72ef29bd5f403d7b881ddd82078aa6759 (patch)
tree47acd2936baa52917b271770ac67a5be4f4c219f
parent15ee83cfd8265caae69a952bffccf86a2b516ab3 (diff)
mpc-flacinfo.sh remote host
-rw-r--r--mpc-flacinfo.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/mpc-flacinfo.sh b/mpc-flacinfo.sh
index 104a732..efcbd46 100644
--- a/mpc-flacinfo.sh
+++ b/mpc-flacinfo.sh
@@ -1,11 +1,13 @@
#!/bin/sh
-HOST="localhost"
+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"
-flacinfo "$file"
-
+echo "$PRECOMMAND && echo \"'$file'\" && $FLACINFO \"$file\"" | ssh -T $USER@$HOST