Skip to content

Instantly share code, notes, and snippets.

@adyp
Created October 28, 2015 20:43
Show Gist options
  • Save adyp/e016cb0bf6e8f0c1882a to your computer and use it in GitHub Desktop.
Save adyp/e016cb0bf6e8f0c1882a to your computer and use it in GitHub Desktop.
shell: close stdin before executing command
exec 0>&- # close stdin
# and execute command without STDIN control...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment