Displaying 4 results from an estimated 4 matches for "testpipe".
Did you mean:
test_pipe
2018 Nov 09
2
Custom Hooks
Yeah it is a tad gross but here is my first (and probably only) attempt:
---------------- 8< ----------------
#!/bin/bash
pipe=/tmp/testpipe
trap "rm -f $pipe" EXIT
if [[ ! -p $pipe ]]; then
mkfifo $pipe
fi
mplayer -slave -playlist "http://my.icecast.stream/music" >
/tmp/testpipe 2> /dev/null &
while true
do
if read line <$pipe; then
echo $line
/bin/dothing "$line&qu...
2018 Nov 09
1
Custom Hooks
On Fri, Nov 09, 2018 at 11:19:43AM +0000, Philipp Schafft wrote:
> > pipe=/tmp/testpipe
>
> There are tools to make tempfiles such as mktemp(1). You can also
> consider using $$.
> > mkfifo $pipe
mktemp makes actual files, not pipes/fifos.
--
Paul Martin <pm at nowster.me.uk>
2018 Nov 09
0
Custom Hooks
Good Afternoon,
On Fri, 2018-11-09 at 23:53 +1300, jake wrote:
> Yeah it is a tad gross but here is my first (and probably only) attempt:
See a few comments inline. :)
> ---------------- 8< ----------------
> #!/bin/bash
>
> pipe=/tmp/testpipe
There are tools to make tempfiles such as mktemp(1). You can also
consider using $$.
> trap "rm -f $pipe" EXIT
>
> if [[ ! -p $pipe ]]; then
> mkfifo $pipe
> fi
>
> mplayer -slave -playlist "http://my.icecast.stream/music" >
> /tmp/testpipe 2...
2018 Nov 09
3
Custom Hooks
Couldn't you also just have a client stream locally from icecast that can do things on metadata change? I mean it's a bit icky but it'd work.
---- Philipp Schafft wrote ----
>Good morning,
>
>On Thu, 2018-11-08 at 12:45 -0500, Alex Hackney wrote:
>> I actually got this to work this morning finally. The problem was on my
>> auth server.
>
>Perfect. :)
>