How to correctly execute a cron job?
up vote
0
down vote
favorite
I'm trying to run a cron job in my laravel project. I run the following command
* * * * * cd c:/PaginasWeb/intranet php artisan schedule:run >> /dev/null 2>&1
and I miss the error
The system can not find the path specified
But that's the route where my project is located, It's the first time I try to do a cron job, and I do not know if I'm doing wrong. The command is executed from c: /
php laravel console
|
show 2 more comments
up vote
0
down vote
favorite
I'm trying to run a cron job in my laravel project. I run the following command
* * * * * cd c:/PaginasWeb/intranet php artisan schedule:run >> /dev/null 2>&1
and I miss the error
The system can not find the path specified
But that's the route where my project is located, It's the first time I try to do a cron job, and I do not know if I'm doing wrong. The command is executed from c: /
php laravel console
What operating system are you running on?
– Roman
Nov 21 at 14:36
3
How exactly are you running this? Because that looks very like a Windows path, and Windows doesn't have a crontab in the same way that Linux does.
– iainn
Nov 21 at 14:36
1
Possible duplicate of How to run task scheduler in windows 10 with Laravel 5.1
– iainn
Nov 21 at 14:36
I'm in windows server 2012 R2
– Edwin Aquino
Nov 21 at 14:37
You'd need a&&
between the path andphp
– aynber
Nov 21 at 14:43
|
show 2 more comments
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to run a cron job in my laravel project. I run the following command
* * * * * cd c:/PaginasWeb/intranet php artisan schedule:run >> /dev/null 2>&1
and I miss the error
The system can not find the path specified
But that's the route where my project is located, It's the first time I try to do a cron job, and I do not know if I'm doing wrong. The command is executed from c: /
php laravel console
I'm trying to run a cron job in my laravel project. I run the following command
* * * * * cd c:/PaginasWeb/intranet php artisan schedule:run >> /dev/null 2>&1
and I miss the error
The system can not find the path specified
But that's the route where my project is located, It's the first time I try to do a cron job, and I do not know if I'm doing wrong. The command is executed from c: /
php laravel console
php laravel console
asked Nov 21 at 14:33
Edwin Aquino
1256
1256
What operating system are you running on?
– Roman
Nov 21 at 14:36
3
How exactly are you running this? Because that looks very like a Windows path, and Windows doesn't have a crontab in the same way that Linux does.
– iainn
Nov 21 at 14:36
1
Possible duplicate of How to run task scheduler in windows 10 with Laravel 5.1
– iainn
Nov 21 at 14:36
I'm in windows server 2012 R2
– Edwin Aquino
Nov 21 at 14:37
You'd need a&&
between the path andphp
– aynber
Nov 21 at 14:43
|
show 2 more comments
What operating system are you running on?
– Roman
Nov 21 at 14:36
3
How exactly are you running this? Because that looks very like a Windows path, and Windows doesn't have a crontab in the same way that Linux does.
– iainn
Nov 21 at 14:36
1
Possible duplicate of How to run task scheduler in windows 10 with Laravel 5.1
– iainn
Nov 21 at 14:36
I'm in windows server 2012 R2
– Edwin Aquino
Nov 21 at 14:37
You'd need a&&
between the path andphp
– aynber
Nov 21 at 14:43
What operating system are you running on?
– Roman
Nov 21 at 14:36
What operating system are you running on?
– Roman
Nov 21 at 14:36
3
3
How exactly are you running this? Because that looks very like a Windows path, and Windows doesn't have a crontab in the same way that Linux does.
– iainn
Nov 21 at 14:36
How exactly are you running this? Because that looks very like a Windows path, and Windows doesn't have a crontab in the same way that Linux does.
– iainn
Nov 21 at 14:36
1
1
Possible duplicate of How to run task scheduler in windows 10 with Laravel 5.1
– iainn
Nov 21 at 14:36
Possible duplicate of How to run task scheduler in windows 10 with Laravel 5.1
– iainn
Nov 21 at 14:36
I'm in windows server 2012 R2
– Edwin Aquino
Nov 21 at 14:37
I'm in windows server 2012 R2
– Edwin Aquino
Nov 21 at 14:37
You'd need a
&&
between the path and php
– aynber
Nov 21 at 14:43
You'd need a
&&
between the path and php
– aynber
Nov 21 at 14:43
|
show 2 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53414376%2fhow-to-correctly-execute-a-cron-job%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What operating system are you running on?
– Roman
Nov 21 at 14:36
3
How exactly are you running this? Because that looks very like a Windows path, and Windows doesn't have a crontab in the same way that Linux does.
– iainn
Nov 21 at 14:36
1
Possible duplicate of How to run task scheduler in windows 10 with Laravel 5.1
– iainn
Nov 21 at 14:36
I'm in windows server 2012 R2
– Edwin Aquino
Nov 21 at 14:37
You'd need a
&&
between the path andphp
– aynber
Nov 21 at 14:43