Re: Setting cronjob for batch video processing
It seems problem with your server. You need to check with your web host to see why plesk is not running cronjob.
Re: Setting cronjob for batch video processing
Oh I got it sorted out.
I was putting in the values and then in the command line I was copying and pasting the command that you wrote for plesk users on the first page of the cron job tutorial. Basically because of that I was essentially unputting the values 2 times and therefore the error was coming up.
therefore on the command you should take off */5 ****
Re: Setting cronjob for batch video processing
Am trying to do this by command line on my server (no control panel)
My /etc/crontab looks like this:
#for vshare processing
*/3 * * * * /usr/local/bin/php -q /usr/local/www/data-dist/cron.php > /dev/null &
I keep getting the following error:
Sep 16 10:37:00 localhost /usr/sbin/cron[726]: (*system*) RELOAD (/etc/crontab)
Sep 16 10:37:00 localhost /usr/sbin/cron[726]: login_getclass: unknown class 'php'
Sep 16 10:37:00 localhost /usr/sbin/cron[726]: (*system*) PARSE (bad username)
Sep 16 10:37:00 localhost /usr/sbin/cron[726]: (process) ORPHAN (no passwd entry)
Any ideas what may be going wrong?
Re: Setting cronjob for batch video processing
sounds like something for admin to handle
Re: Setting cronjob for batch video processing
s25, try running the command on system prompt
/usr/local/bin/php -q /usr/local/www/data-dist/cron.php
The error seems some thing related to the system user that runs the cronjob. Which system user the cron job runs ?
Re: Setting cronjob for batch video processing
when you say system prompt you mean the cron jobs line? or the server command line?
Re: Setting cronjob for batch video processing
I think he means the command line, I am running it fine on the command line as root without an issue, How do I make it run as a cronjob using the command line?
Re: Setting cronjob for batch video processing
Code:
crontab -e -u username
Then it will open text editor like nano, pico or vi depending on your server. You need to enter the cronjob command in the editor and save it. After you add it, you can verify it with command
Code:
crontab -l -u username
Don't run it as user root. If you are loging in as root, just create a new user to run cron job.