Skip to content

Instantly share code, notes, and snippets.

@thepoppingone
Last active October 1, 2019 07:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thepoppingone/14d47600854cd451b92c15f07689978f to your computer and use it in GitHub Desktop.
Save thepoppingone/14d47600854cd451b92c15f07689978f to your computer and use it in GitHub Desktop.
To start bamboo agent and tail the log in the same terminal
while true; do
echo "Starting Bamboo Process Console - logs to /tmp"
./bamboo-agent.sh console >> /tmp/bamboo-logs &
BAMBOO_PID=$!
tail -f /tmp/bamboo-logs &
TAIL_PID=$!
echo "Tail PID is $TAIL_PID"
echo "Bamboo PID is $BAMBOO_PID"
wait $BAMBOO_PID
kill -9 $TAIL_PID
echo "Bamboo Console Process has Ended"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment