[Phphtmllib-devel] SF.net SVN: phphtmllib:[3532] trunk/open2300/lib/core/daemon/ AviProcessorDaemon
Status: Beta
Brought to you by:
hemna
From: <he...@us...> - 2010-07-12 21:35:58
|
Revision: 3532 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3532&view=rev Author: hemna Date: 2010-07-12 21:35:51 +0000 (Mon, 12 Jul 2010) Log Message: ----------- logs Modified Paths: -------------- trunk/open2300/lib/core/daemon/AviProcessorDaemon.inc Modified: trunk/open2300/lib/core/daemon/AviProcessorDaemon.inc =================================================================== --- trunk/open2300/lib/core/daemon/AviProcessorDaemon.inc 2010-07-12 21:35:15 UTC (rev 3531) +++ trunk/open2300/lib/core/daemon/AviProcessorDaemon.inc 2010-07-12 21:35:51 UTC (rev 3532) @@ -111,7 +111,7 @@ $this->log->info("::do_task() rate is ".$rate." -> movie length = ".$this->num_images/$rate."s"); //generate the avi - $cmd = "/home/waboring/bin/imgs2avi.sh -w 640 -h 480 -r ".$rate; + $cmd = "/home/waboring/local/bin/imgs2avi.sh -w 640 -h 480 -r ".$rate; $this->exec_command($dirname, $cmd); //now convert the avi movie to a flash file @@ -123,7 +123,8 @@ //now send it to the hosting provider //$cmd = "/usr/bin/scp timelapse.flv wx.hemna.com:wx.hemna.com/htdocs/video/".$ymdDate; - $cmd = "/usr/bin/rsync -av ".$ymdDate." wx.hemna.com:wx.hemna.com/htdocs/video"; + //$cmd = "/usr/bin/rsync -av ".$ymdDate." wx.hemna.com:wx.hemna.com/htdocs/video"; + $cmd = "/usr/bin/rsync -av ".$ymdDate." /home/waboring/wx.hemna.com/htdocs/video"; $this->exec_command($dirname, $cmd); //track the image count @@ -138,7 +139,7 @@ $command = "cd ".$dirname."; ".$cmd." 2>&1 >>".$dirname."/processing.log"; $this->log->info("::exec_command() exec ".$command); $last_line = system($command, $return); - $this->log->debug("::exec_command() done"); + $this->log->debug("::exec_command() done :".$last_line); } /** @@ -238,6 +239,14 @@ public function generate_pid_filename() { return realpath($GLOBALS["path_base"]).'/bin/'.__CLASS__.'.pid'; } + + + /** + * no need to set the user id + */ + public function set_identity() { + return true; + } } ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |