<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>the best approach is to use hook_nodeapi() <a href="http://api.drupalecommerce.org/api/function/hook_nodeapi/6">http://api.drupalecommerce.org/api/function/hook_nodeapi/6</a> to trigger the update, and the you can exec() the script or even use the ssh2 extension to communicate directly with the other server. Or you could write a script that will monitor a directory and do something like the cdn module to move transfer the file.</div><div><br></div><div>Gordon.</div><div><br></div><div><div><div>On 27/08/2010, at 9:32 AM, Sarah Vardy wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt">I am currently developing a module for the audio module to enable RTMP streaming and FFMPEG encoding. <br>
<br>
I am wondering what the best approach is to run the scp command (like flash video) when an audio node is added (to add the file to an RTMP server)? Can I use hook_form_alter to run this command? I am looking through the Drupal API at the moment. I also want to run an ffmpeg command as well when the node is added to encode the media for storage on the rtmp server.<br>
<br>
Any help or suggestions would be much appreciated.<br>
<br>
Cheers,<br>
<br>
scarer</span></font>
</div>


-- <br>[ Drupal support list | <a href="http://lists.drupal.org/">http://lists.drupal.org/</a> ]</blockquote></div><br></div></body></html>