From f27608f2695d51f563adb6ebc8c475c6a8df53ba Mon Sep 17 00:00:00 2001 From: root Date: Wed, 17 Feb 2010 23:14:37 +0100 Subject: 0.3.5-dev --- streamstatus.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 streamstatus.php (limited to 'streamstatus.php') diff --git a/streamstatus.php b/streamstatus.php new file mode 100755 index 0000000..4582dc6 --- /dev/null +++ b/streamstatus.php @@ -0,0 +1,21 @@ +\n"; + echo "\n"; + $cnt = 0; + + while ( ( count(glob('ram/*.ts')) < 2 ) && ( $cnt < 25 ) ) + { + // wait for stream available + sleep(1); + $cnt++; + } + + if ( count(glob('ram/*.ts')) < 2 ) + echo "error\n"; + else + echo "ok\n"; + + echo "\n"; + +?> -- cgit v1.2.3