- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
foreach (glob('data/'.$year . "/unzip/*.txt") as $filename) {
$name_file = explode(".",$filename);
if (!file_exists($name_file[0].".out")){
// заливаем в jar
exec('nohup java -jar "noaa.jar" ' . $filename . ' ' . $name_file[0] . '.out > /dev/null &', $log, $log1);
echo "Insert " . $filename . " Complete!\n\r";
usleep(10000);
}
else echo "You have uploaded this file already!\n\r";
}
MITtMIq 25.08.2021 07:22 # 0