Correction: This works fine from a script executed by cron. Still doesn't work
from rc.local. Anyone willing to impart some additional wisdom?

Breeno


Quoting misc.open...@mail.usask.ca:

> G0kita,
>
> I've had a chance to review your advice, and I believe I've spotted a problem
> with your redirects. The command that works for me is:
>
> /usr/bin/aucat -o - 2>/dev/null </dev/null | /usr/local/bin/lame -r -a -b 56
> - -
> 2>/dev/null | /usr/local/bin/ezstream -c /etc/ezstream.xml >/dev/null 2>&1 &
>
> Before the first pipe: aucat is sending audio to stdout, so we don't want to
> mess with that. However, we want to disconnect terminal output (only stderr
> remains) and terminal input so we redirect accordingly to /dev/null.
>
> Before the second pipe: lame is receiving data from stdin and sending data to
> stdout, so we don't want to mess with that. However, we want to disconnect
> terminal output (only stderr remains) so we redirect accordingly to
> /dev/null.
>
> After the second pipe: ezstream is receiving data from stdin, so we don't
> want
> to mess with that. However, we want to disconnect terminal output (both
> stdout
> and stderr in this final case) so we redirect accordingly to /dev/null.
>
> The above works for me when added to rc.local, and works when added to my
> watchdog script that is executed by cron.
>
> Breeno
>
>
> Quoting G 0kita <goo...@gmail.com>:
>
> > If you throw it into rc.local you will have to disconnect it from the
> > terminal for it to work.
> > /etc/rc.local:
> >  /usr/bin/aucat -o - 2> /dev/null | /usr/local/bin/lame -r - - |
> > /usr/local/bin/ezstream -q -c /etc/ezstream.xml < /dev/null &> /dev/null
> --snip--

Reply via email to