Sometimes in bash script I need completely disable all output. Here is simple solution
#!/bin/bash exec 0>&- # close stdin exec 1>&- # close stdout exec 2>&- # close stderr
Sometimes in bash script I need completely disable all output. Here is simple solution
#!/bin/bash exec 0>&- # close stdin exec 1>&- # close stdout exec 2>&- # close stderr