Laravel:Schedule:在Windows上运行:不能自动运行,但是可以手动运行

时间:2019-04-25 23:31:28

标签: laravel

我在Windows中创建了计划任务,并在项目laravel中创建了一个控制台,但是该命令不起作用

这是我的命令:

top

这是终端中的错误消息

left

这是我的控制台命令:

>php C:\xampp\htdocs\my-app\artisan schedule:run 1>> NUL 2>&1

这是我的kernel.php

>php C:\xampp\htdocs\my-app\artisan schedule:run 1>> NUL 2>&1

out-file : FileStream devait ouvrir un périphérique qui n'était pas un fichier. Pour une prise en charge de périphériques 
tels que 'com1:' ou 'lpt1:', appelez CreateFile, puis utilisez les constructeurs FileStream qui utilisent un handle OS (de 
système d'exploitation) comme IntPtr.
Au caractère Ligne:1 : 1
+ php C:\xampp\php\php.exe  c:\Users\User\Desktop\alerts\artisan schedu ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (:) [Out-File], NotSupportedException
    + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand

0 个答案:

没有答案
相关问题