<HTML>
<HEAD>
<TITLE>How to run a script when a node is added for a custom module</TITLE>
</HEAD>
<BODY>
<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>
</BODY>
</HTML>