Перенаправления потоков
Redirection
Всё время забываю что и куда писать
** 1 = STDOUT 2 = STDERR ** | |
command 2>filename | redirects STDERROR |
command >&2 | redirect *to* STDERROR. ie echo hello >&2 sends hello to stderror |
command >foo 2>&1 | redirects STDOUT to foo and STDERROR to STDOUT (which in this case is foo) |
>&- | causes STDOUT to go nowhere (cyberspace) |
<&- | causes input to come from nowhere. ie there is no input |
Всё время забываю что и куда писать
Read more...