/dev/null 2>&1 && echo "File telah diunduh." | mail -s "Notifikasi Cron" ' . escapeshellarg($emailToNotify); // Tambahkan tugas Cron yang baru $result = shell_exec('(crontab -l ; echo "'.$downloadCronCommand.'") | crontab -'); if ($result === false) { echo 'Gagal menambahkan tugas Cron untuk mengunduh file.'; } else { echo 'Tugas Cron untuk mengunduh file berhasil ditambahkan.'; } ?>