i use travis-ci to build linux from scratch version 7.8. during build, travis-ci throw error because log file large than 4 mega bytes. you can see at lfs-auto, build #15
now, i want to redirect all data from stdout to /dev/null to reduce size of log file. in normal way, people use redirect operation for each command as dev/null. but that way make shell script become too long and hard to read
any body have idea to solve that problems ?
problem are solved!. thank to every body has comments
i pick up solution exec > /dev/null because that command redirect all output from std to /dev/null without other operations. in this case, exec > /dev/null are simple, easy to edit than script-file > /dev/null or { command, ... } > /dev/null
solve question duplicate
with some comments, this question have content same as How do I redirect the output of an entire shell script within the script itself? and how to redirect output of multiple commands to one file
i am recognize that my question same as How do I redirect the output of an entire shell script within the script itself?, but my question are more clear, shorter
i need more comments to solve duplicate problems in two case
- merge this question with other question and delete this question
- delete this question and do nothing
- do nothing