Advertisement
Guest User

output

a guest
Jun 4th, 2013
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. php script:
  2. #!/usr/bin/php
  3. <?
  4. require "RtmpClient.class.php";
  5. exec('echo "hello" >> /tmp/kfir');
  6. $client = new RtmpClient();
  7. try {
  8. $client->connect("localhost","live");
  9. } catch (Exception $e){
  10. exec('echo "restarted" >> /tmp/kfir');
  11. echo exec('/etc/init.d/red5 stop');
  12. echo 'waiting 5 seconds';
  13. sleep(5);
  14. echo exec('/etc/init.d/red5 start');
  15. }
  16. $client->close();
  17. ?>
  18.  
  19.  
  20. ls -lsa /mnt/www/entwine/rtmp-check/rtmpcheck.php
  21. 4 -rwxr-xr-x 1 root root 357 Jun 4 15:23 /mnt/www/entwine/rtmp-check/rtmpcheck.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement