D
D
DTX2017-01-25 14:08:39
linux
DTX, 2017-01-25 14:08:39

What does the entry >> 2>&1 mean?

The Laravel website has a script for launching the scheduler:

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

What does it mean
>> /dev/null 2>&1
?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2017-01-25
@DirecTwiX

>> /dev/null- redirecting stdout to /dev/null
2>&1- redirecting stderr to stdout (which will go to /dev/null)

4
4dmir, 2021-10-05
@4dmir

I prefer
&> redirect and rewrite output and errors
&>> redirect and append output and errors
in your case stdout & stderr to the abyss)) :
php /path/to/artisan schedule:run &> /dev/null

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question