<br><br><div class="gmail_quote">On Tue, Nov 10, 2009 at 7:56 AM, Andrew Thompson <span dir="ltr">&lt;<a href="mailto:andrew@hijacked.us">andrew@hijacked.us</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Tue, Nov 10, 2009 at 11:29:37PM +0800, mark morreny wrote:<br>
&gt; Hi<br>
&gt;<br>
</div><div class="im">&gt; Thanks for the tips.  May I ask how to split the file from hadoop to the<br>
&gt; shell?  Is it like copying the file to certain dir?<br>
&gt;<br>
&gt; I can&#39;t find any mod_shell_stream related info from the wiki.  Does anyone<br>
&gt; know how to use it?<br>
&gt;<br>
<br>
</div>mod_shell_stream is undocumented, but from reading the code I gather it<br>
works like this:<br>
<br>
Module calls fork() and in the child process it runs an arbitrary shell<br>
command (specified in its config file?). The parent process then reads<br>
raw audio data from the child process and uses it as an audio source.<br>
<br>
So basicially you could write the shell command in anything, so long as<br>
it outputs raw audio to FS.<br>
<br>
Or maybe I read the code wrong when I skimmed over it. If you do get it<br>
working, please contribute some documentation to the wiki.<br>
<div><div></div><div class="h5"><br>
Andrew<br>
<br></div></div></blockquote><div>Andrew,<br>Thanks for poking around in there. I made a stub for this mod on the wiki:<br><a href="http://wiki.freeswitch.org/wiki/Mod_shell_stream">http://wiki.freeswitch.org/wiki/Mod_shell_stream</a><br>
<br>If anyone is familiar with it and could throw an example up there that would be much appreciated. <br>Thanks,<br>MC<br></div></div><br>