[Phphtmllib-devel] SF.net SVN: phphtmllib:[3301] trunk/open2300/lib/core/daemon/ AviProcessorDaemon
Status: Beta
Brought to you by:
hemna
From: <he...@us...> - 2009-11-25 22:31:23
|
Revision: 3301 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3301&view=rev Author: hemna Date: 2009-11-25 22:30:53 +0000 (Wed, 25 Nov 2009) Log Message: ----------- small updates Modified Paths: -------------- trunk/open2300/lib/core/daemon/AviProcessorDaemon.inc Modified: trunk/open2300/lib/core/daemon/AviProcessorDaemon.inc =================================================================== --- trunk/open2300/lib/core/daemon/AviProcessorDaemon.inc 2009-11-25 22:24:20 UTC (rev 3300) +++ trunk/open2300/lib/core/daemon/AviProcessorDaemon.inc 2009-11-25 22:30:53 UTC (rev 3301) @@ -26,7 +26,7 @@ * how long to wait in between * processing. in seconds */ - protected $wait_period = 5; + protected $wait_period = 1800; /** @@ -78,8 +78,6 @@ //used for directory $ymdDate = date("Ymd"); - - $hour = date("G"); $dirname = $this->imagesdir."/".$ymdDate; //make sure the images dir exists. @@ -107,10 +105,7 @@ //now send it to the hosting provider $cmd = "/usr/bin/scp timelapse.flv wx.hemna.com:wx.hemna.com/htdocs/video/".$ymdDate; $this->exec_command($dirname, $cmd); - } - - $this->log->info("Exiting"); - exit; + } } /** @@ -119,8 +114,9 @@ */ protected function exec_command($dirname, $cmd) { $command = "cd ".$dirname."; ".$cmd." 2>&1 >>".$dirname."/processing.log"; - $this->log->info("::do_task() exec ".$command); - $last_line = system($command, $return); + $this->log->info("::exec_command() exec ".$command); + $last_line = system($command, $return); + $this->log->debug("::exec_command() done"); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |