Php Laravel 5.1 cron在OVH中不工作

Php Laravel 5.1 cron在OVH中不工作,php,laravel-5,ovh,Php,Laravel 5,Ovh,我试图在OVH中运行cron,但它不接受以下命令: php artisan schedule:run 1>> /dev/null 2>&1 发生错误: 它说: The characters for the records are letters , numbers, and characters -_./ Moreover , it is forbidden to access parent folders 使用Laravel文档上的示例,其中包含工作目录的完整路

我试图在OVH中运行cron,但它不接受以下命令:

php artisan schedule:run 1>> /dev/null 2>&1
发生错误:

它说:

The characters for the records are letters , numbers, and characters -_./ Moreover , it is forbidden to access parent folders

使用Laravel文档上的示例,其中包含工作目录的完整路径:

* * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1

使用这些内容创建一个文件
cron.php



只需遵循

它现在仍在工作。不允许在字段中添加空间。我一放一个空格,它就抛出错误。它在我的服务器上工作,但在OVH中不好。@Pranab-看起来OVH的控制面板有问题。您可以尝试在命令周围加引号,但否则可能是OVH支持问题。它仍然是一样的。在命令周围加引号也不起作用。@Pranab-似乎是一个托管问题,所以这可能会有所帮助,但我退出了。托管提供商告诉我使用cron.php或类似的东西也不起作用。如何在Laravel中为cron使用.php。请在您的应用程序中添加更多详细信息question@AbrarJahin我已经更新了显示错误的图像。请看一看
#!/usr/bin/env php
<?php
exec('php /path/to/artisan schedule:run', $output);
print_r($output);
$ chmod 777 cron.php
$ chmod 777 /path/to/artisan