//------------------------------------------------------------------------ // Uninstall twitter Cron job //------------------------------------------------------------------------ openCrontab('write'); if ($access != 'write') { do { $r = $cron->forceWriteable(); } while ($r); } foreach ($cron->ct->getByType(CRON_CMD) as $id => $line) { if (preg_match($old_regex, $line['command'])) { echo " removing cron entry\n"; $cron->ct->delEntry($id); } } $cron->closeCrontab(); echo "Done.\n"; ?>