[support] How to run a script when a node is added for a custom module
Jamie Holly
hovercrafter at earthlink.net
Fri Aug 27 00:00:42 UTC 2010
I've done something similar and used exec() to call a shell script:
http://php.net/manual/en/function.exec.php
The other option is using the PHP ssh2 module, which support SCP transfers:
http://php.net/manual/en/book.ssh2.php
Jamie Holly
http://www.intoxination.net
http://www.hollyit.net
On 8/26/2010 7:32 PM, Sarah Vardy wrote:
> I am currently developing a module for the audio module to enable RTMP
> streaming and FFMPEG encoding.
>
> 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.
>
> Any help or suggestions would be much appreciated.
>
> Cheers,
>
> scarer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20100826/4d438d2a/attachment.html
More information about the support
mailing list