[[定点カメラ]] - 処理の指示 /etc/crontab に記述され 午前3時に実行されます。~ 撮影は 夜中には行われません。~ 0 3 * * * root /mnt/dsk1/www/html/qwatch2/mkmovie.php #!/usr/local/bin/php <?php require "/mnt/dsk1/www/html/qwatch2/qwatch2_func.php"; date_default_timezone_set('Asia/Tokyo'); $yesterday = date("Ymd", strtotime('-1 day')); $yesterday2 = date("Y-m-d", strtotime('-1 day')); $DBY = date("Ymd", strtotime('-2 day')); // Qwatch2 用の処理 $camera = "qwatch2"; move_file($yesterday, $yesterday2, $DBY, $camera); fill_filename($yesterday, $camera); make_movie($yesterday, $camera); delete_file($yesterday, $yesterday2, $DBY, $camera); // raspCam 用の処理 $camera = "raspCam"; move_file($yesterday, $yesterday2, $DBY, $camera); fill_filename($yesterday, $camera); make_movie($yesterday, $camera); delete_file($yesterday, $yesterday2, $DBY, $camera); ?>