Skip to content

Instantly share code, notes, and snippets.

@mgurov
Created May 1, 2013 12:17
Show Gist options
  • Save mgurov/5494987 to your computer and use it in GitHub Desktop.
Save mgurov/5494987 to your computer and use it in GitHub Desktop.
nohupped run with pid traced
#!/bin/bash -e
nohup ./cmd.sh &
NOHUP_PID=$!
echo $NOHUP_PID | tee nohup.pid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment