Skip to content

Instantly share code, notes, and snippets.

@sblack4
Created June 1, 2021 20:42
Show Gist options
  • Save sblack4/2ec324debf64e368c3b2f335a549daaa to your computer and use it in GitHub Desktop.
Save sblack4/2ec324debf64e368c3b2f335a549daaa to your computer and use it in GitHub Desktop.
nohup stdout and stder to logfile, send process to background
#!/bin/bash
[ -f nohup.log ] && rm -f nohup.log
nohup \
yes \
> nohup.log 2>&1 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment