Timeline for Linux : how to redirect stdout & stderr to logger?
Current License: CC BY-SA 3.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 13, 2014 at 1:19 | comment | added | mikeserv | Well, that may not be necessary - you can't type fast enough for it to make a difference in an interactive shell - for which I use zsh. But, for scripts, dash is faster than any others I've tried. | |
| Apr 13, 2014 at 0:29 | comment | added | slm♦ | @mikeserv - yeah I remember you mentioning that in chat one night. I'll have to spend a week trying to live in just Dash to gain a better appreciation of it. | |
| Apr 13, 2014 at 0:22 | comment | added | mikeserv | I don't use debians either, honestly, but I'm becoming more and more aware that many do. I do use dash, though - it really is fast. | |
| Apr 13, 2014 at 0:21 | comment | added | slm♦ | @mikeserv - nope it's sound advice. I generally don't use Dash or even Ubuntu so I'm a bit oblivious to these issues but they're still very real and it's good to point them out since Ubuntu/Debian/Dash is likely to be the more common scenario. | |
| Apr 13, 2014 at 0:19 | history | edited | slm♦ | CC BY-SA 3.0 | added 200 characters in body |
| Apr 13, 2014 at 0:17 | comment | added | slm♦ | @mikeserv - no offense taken 8-). I include these since they're in the ABSG guide. I assumed (possibly incorrectly) that the OP was using Bash since they showed 2>&1 but your warns are quite wise, given the example is dealing with startups. I'll make those latter tips more prominent w/ a warning that they're meant for interactive only Bash shells. | |
| Apr 13, 2014 at 0:06 | comment | added | mikeserv | slm, no offense meant, but the latter form is rampant bashism abuse. The amount of issues such unnecessary shorthand could cause are not at all worth what little gain could be had from their use. For instance, even just on your own machine, if you put the above in a script and dash tries to execute the script at boot only to fail and belly-up your boot process... well... When such syntax is mentioned it should always be in the context of interactive shells only, or, at least, such is my opinion. | |
| Apr 12, 2014 at 23:00 | vote | accept | fred basset | ||
| Apr 12, 2014 at 21:59 | history | edited | slm♦ | CC BY-SA 3.0 | added 132 characters in body |
| Apr 12, 2014 at 21:52 | history | answered | slm♦ | CC BY-SA 3.0 |