shithub: riscv

ref: 890b97fa08c541e020888c2514cadebe8b812d2e
dir: /sys/src/cmd/audio/scream/screamsend/

View raw version
#!/bin/rc
rfork e
lifc=()
while(~ $1 *.*.*.*){
	lifc=($lifc $1)
	shift
}
if(! ~ $#* 0){
	echo 'Usage: audio/screamsend [interfaceip]...' >[1=2]
	exit 'usage'
}
if(~ $#lifc 0) lifc=`{awk '/4u/{print $1}' /net/ipselftab}
exec audio/screamenc < /dev/audio | exec aux/trampoline -o^'addmulti '^$lifc udp!239.255.77.77!4010