| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Mex |
mark lewis wrote to Alan Ianson:
ml> ml> maximus >/opt/maxbuild1.log 2>&1
ml>
ml> AI> What does the 2>&1 at the end of that line do?
ml>
ml> redirects filehandle 2 to filehandle 1 which is already being redirected
ml> to the log file... IIRC, that is... basically, filehandle 2 is stderr
ml> (standard error output) whereas filehandle 1 is stdout (standard output)
ml> both writting to the screen... without that 2>&1, the errors would be
ml> written to the screen and not the logfile...
Ahh, I wondered why the errors were being displayed on the screen
instead of being redirected.. That is helpful.. :)
Ttyl :-),
Al
... The chief cause of problems is solutions.
--- MBSE BBS v0.81.3 (GNU/Linux-x86_64)
* Origin: The Rusty MailBox - Penticton, B.C. Canada - trmb.ca (1:340/401.4)SEEN-BY: 3/0 633/267 640/954 712/0 313 550 620 848 @PATH: 340/401 153/7715 140/1 138/146 392 123/500 261/38 712/848 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.