Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save deviationist/26109b2681b884d3690207340cd30404 to your computer and use it in GitHub Desktop.
Save deviationist/26109b2681b884d3690207340cd30404 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Fire and forget
nohup ./shell.sh >/dev/null 2>&1 &
# Wait and suppress output
( ./shell.sh ) >/dev/null 2>&1
# Wait and return output
./shell.sh
echo 'Yes'
exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment