Timeline for Reading file descriptors
Current License: CC BY-SA 3.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 29, 2017 at 1:31 | comment | added | jesse_b | I'm not exactly sure how it works but I know if you want to throw away all output you put it at the end like this: command > /dev/null 2>&1 | |
| Jul 28, 2017 at 23:40 | history | edited | Gilles 'SO- stop being evil' | edited tags | |
| Jul 28, 2017 at 23:05 | history | edited | GypsyCosmonaut | CC BY-SA 3.0 | added 388 characters in body |
| Jul 28, 2017 at 22:35 | comment | added | jesse_b | Try cat file 3> ofile 1>&3 also I don't think your second command is actually working. I think it's executing: cat file and throwing away 1>&3 && cat <3 | |
| Jul 28, 2017 at 22:33 | vote | accept | GypsyCosmonaut | ||
| Jul 28, 2017 at 22:30 | history | edited | GypsyCosmonaut | CC BY-SA 3.0 | added 410 characters in body |
| Jul 28, 2017 at 21:49 | answer | added | Stéphane Chazelas | timeline score: 6 | |
| Jul 28, 2017 at 21:38 | comment | added | jesse_b | When you do 1>&3 you aren't saying "redirect 1 to 3" you are saying "redirect 1 and 3" | |
| Jul 28, 2017 at 21:37 | comment | added | jesse_b | I don't think that is how any of this works. If you would like your command to read the contents of file to STDOUT you can execute this command: cat file If you want to redirect STDOUT to something else you can do cat file > or cat file 1> | |
| Jul 28, 2017 at 21:28 | history | asked | GypsyCosmonaut | CC BY-SA 3.0 |