简体   繁体   中英

Plesk Laravel scheduler does not run

I have added the Laravel scheduler as a scheduled task to Plesk:

cd /var/www/vhosts/websitename.com/httpdocs && /opt/plesk/php/7.3/bin/php artisan dailyCron:run >> /dev/null 2>& 1

But it is giving me an error:

Task "cd /var/www/vhosts/websitename.com/httpdocs && /opt/plesk/php/7.3/bin/php artisan dailyCron:run >> /dev/null 2>& 1" completed with error in 0 seconds, output:

'cd /var/www/vhosts/websitename.com/httpdocs && /opt/plesk/php/7.3/bin/php artisan dailyCron:run >> /dev/null 2>& 1' is not recognized as an internal or external command, operable program or batch file.
at (RunTime::Execute::commandLine line 611)
at Plesk impersonation(PipeServer::ServerThread::impersonateRunAs line 728)

Don't know why this error is coming up. Is anything wrong in the command?

使用 cronjob 在 plesk 面板上执行命令

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM