php代码
<?php $directory = dirname(__FILE__);// /var/bigbluebutton $iterator = new DirectoryIterator($directory); foreach ($iterator as $fileinfo) { $path = $fileinfo -> getFilename(); //目录名称 if (!$fileinfo -> isDot() && $fileinfo -> isDir() && $fileinfo -> getMTime() > time()-5 * 60) { $cp = $directory . "/" . $path . "/" . $path; if (!is_dir($directory . $path . "/" . $path . "/L1")) { echo "not exits;"; echo "cp /opt/pdfs/* " . $cp; system("cp -rf /opt/pdfs/* " . $cp); //将生成好了的pdf文件到/opt/pdfs } } } ?>