Portal Home > Knowledgebase > Articles Database > crontab -l not listing cron jobs


crontab -l not listing cron jobs




Posted by caisc, 08-25-2011, 02:29 PM
Hello, when i try to list cron jobs for root user by command crontab -l in ssh, it does not show any result. this problem occurred after we disabled some functions in php.ini file on the server like - disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open, allow_url_fopen, symlink, dl, phpinfo, escapeshellarg, escapeshellcmd, curl_multi_exec, base64_encodem can anyone tell me that which disabled function is causing this problem, or is there any other reason behind this. Thanks

Posted by 8088, 08-25-2011, 02:37 PM
PHP settings have nothing to do with this, unless you're trying to execute commands with PHP. What does crontab -e show? Nothing at all, or 'no crontab for root'?

Posted by caisc, 08-25-2011, 02:40 PM
Nothing at all example - myserver$ crontab -l myserver$ nothing shows up, just returns back to command prompt

Posted by 8088, 08-25-2011, 02:51 PM
10charthresholdblah

Posted by HostAdmins, 08-25-2011, 04:35 PM
Check the files in the location /var/spool/cron/ of your server.

Posted by HostXNow_Chris, 08-25-2011, 06:17 PM
You can also check

Posted by brianoz, 08-25-2011, 06:25 PM
You've probably inadvertently wiped your root crontab file. See if you have any backups - eg under /backup/cpbackup if you have cPanel. Also be aware that a lot of root cron jobs run out of files in /etc - /etc/crontab, but also files in directories named like /etc/cron* - /etc/cron.d for variable time jobs, /etc/cron.hourly for hourly, daily for daily, weekly for weekly. Nevertheless you should try to recover your root crontab as mentioned!



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
PHp recompile question (Views: 571)