aboutsummaryrefslogtreecommitdiff
path: root/stream-audio.sh
blob: 1ae7772d10bd60831b8abd1235bad28ee2e4e5c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

read -p "User: " user
read -p "Target: " target
if [ "x${user}" != "x" ]; then
	ssh -L "4713:127.0.0.1:4713" "${user}@${target}" -o "ExitOnForwardFailure yes"
	export PULSE_SERVER="127.0.0.1"
else
	export PULSE_SERVER="${target}"
fi
$*