packages/initscripts/353/launch.php

Go to the documentation of this file.
00001 #!/usr/local/sbin/php -q
00002 <?php
00003 $conf_file="/etc/launch.conf";
00004 $rez=0;
00005 if(is_file($conf_file)) {
00006         $file=fopen($conf_file, 'r');
00007         if($file) {
00008                 $rez=1;
00009                 $cmd=fgets($file);
00010                 fclose($file);
00011                 echo "launcher: run command: ".$cmd."\n";
00012 //              $rez=exec($cmd);
00013                 exec($cmd." 2>&1", $rez);
00014                 echo "rez == |".var_dump($rez)."|";
00015         }
00016 }
00017 if(!$rez) {
00018         echo "launcher: skip user program launch\n";
00019 }
00020 ?>

Generated on Thu Aug 7 16:19:00 2008 for elphel by  doxygen 1.5.1