summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-04-01 11:08:16 +0200
committerAlib <aliboba@free.fr>2010-04-01 11:08:16 +0200
commit460a602e041ce142fed046b0bc47663203625007 (patch)
tree5d04d43b0e7bdce696fd943a044def57c3bfa98f
parenta6cfc75a2a66f76fffc1d113032fbe7f819f94e6 (diff)
downloadistreamdev-460a602e041ce142fed046b0bc47663203625007.tar.gz
istreamdev-460a602e041ce142fed046b0bc47663203625007.tar.bz2
new way to start istream.sh without AT command ( for the moment the ffmpeg don't kill )
-rw-r--r--bin/session.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/session.php b/bin/session.php
index 950c855..6255058 100644
--- a/bin/session.php
+++ b/bin/session.php
@@ -82,13 +82,13 @@ function sessioncreate($type, $url, $mode)
switch ($type)
{
case 'tv':
- $cmd = "export SHELL=\"/bin/sh\";printf \"./istream.sh \\\"" .$url ."\\\" " .$qparams ." " .$httppath ." 2 " .$ffmpegpath ." " .$segmenterpath ." " .$session ." \\\"" .$ffdbg ."\\\" \" | at now";
+ $cmd = "./istream.sh \"" .$url ."\" " .$qparams ." " .$httppath ." 2 " .$ffmpegpath ." " .$segmenterpath ." " .$session ." \"" .$ffdbg ."\" --task=50 >/dev/null &#038;";
break;
case 'rec':
- $cmd = "export SHELL=\"/bin/sh\";printf \"cat \\\"" .$url ."\\\"/0* | ./istream.sh - " .$qparams ." " .$httppath ." 1260 " .$ffmpegpath ." " .$segmenterpath ." " .$session ." \\\"" .$ffdbg ."\\\" \" | at now";
+ $cmd = "cat \"" .$url ."\"/0* | ./istream.sh - " .$qparams ." " .$httppath ." 1260 " .$ffmpegpath ." " .$segmenterpath ." " .$session ." \"" .$ffdbg ."\" >/dev/null &#038;";
break;
case 'vid':
- $cmd = "export SHELL=\"/bin/sh\";printf \"./istream.sh \\\"" .$url ."\\\" " .$qparams ." " .$httppath ." 1260 " .$ffmpegpath ." " .$segmenterpath ." " .$session ." \\\"" .$ffdbg ."\\\" \" | at now";
+ $cmd = "./istream.sh \"" .$url ."\" " .$qparams ." " .$httppath ." 1260 " .$ffmpegpath ." " .$segmenterpath ." " .$session ." \"" .$ffdbg ."\" >/dev/null &#038;";
break;
default:
$cmd = "";