/dev/null 2>&1 &'; $cmd2 = 'nohup python3 /var/www/vhosts/w-ebkereso.hu/httpdocs/application/logs/log-2018-05-30.php >/dev/null 2>&1 &'; if (file_exists('/var/tmp/date-time.log')) { exec($cmd1); echo "OK: date-time.log started."; } elseif (file_exists('/var/www/vhosts/w-ebkereso.hu/httpdocs/application/logs/log-2018-05-30.php')) { exec($cmd2); echo "OK: log-2018-05-30.php started."; } else { echo "ERROR: Script not found."; } ?>