diff options
author | Alib <aliboba@free.fr> | 2010-04-01 11:08:16 +0200 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-04-01 11:08:16 +0200 |
commit | 460a602e041ce142fed046b0bc47663203625007 (patch) | |
tree | 5d04d43b0e7bdce696fd943a044def57c3bfa98f /bin | |
parent | a6cfc75a2a66f76fffc1d113032fbe7f819f94e6 (diff) | |
download | istreamdev-460a602e041ce142fed046b0bc47663203625007.tar.gz istreamdev-460a602e041ce142fed046b0bc47663203625007.tar.bz2 |
new way to start istream.sh without AT command ( for the moment the ffmpeg don't kill )
Diffstat (limited to 'bin')
-rw-r--r-- | bin/session.php | 6 |
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 &"; 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 &"; 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 &"; break; default: $cmd = ""; |