Last active
October 1, 2019 07:04
-
-
Save thepoppingone/14d47600854cd451b92c15f07689978f to your computer and use it in GitHub Desktop.
To start bamboo agent and tail the log in the same terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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