Your Server

how to setup crontab in linux?

hi i am trying to add a crontab on my linux machine i have a dedicated linux server installed Red hat with root access i have plesk panel (ver:9.0.1)also ... well i am using putty because i didn't found any option to set cron in plesk server so i had used these commands: crontab -e 58 12 * * * /usr/bin/php /var/www/vhosts/cron.php >>/dev/null 2>&1 0 13,14,15 * * * root /var/www/vhosts/cron.php >> /dev/null 2>&1 and many more types but it is not adding my cron in list and even it is not giving any error... i am using crontab -l to check crons listing. and crontab -e to see the cron file in edit mode. pl help me ASAP -regards mahendra varandani no in cron log there is no error showing...

Public Comments

  1. looks like syntax of crontab is correct. Check wat error you are getting in log file /var/log/cron, i guess you might be getting some errors. If there is some problem with syntax crontab -e will not allow to saw.
Powered by Yahoo! Answers