Created
February 5, 2011 23:58
-
-
Save havvg/812938 to your computer and use it in GitHub Desktop.
A simple wrapper for the new cloudcontrol API provided by cctrlapp version 1.0.0, showing current workers and their command line information.
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
#!/bin/bash | |
APP=$1 | |
for worker in `cctrlapp $APP worker | grep -ve '^Workers' | grep -ve '^ nr\.' | tr -s " " | cut -f3 -d " "`; | |
do | |
cctrlapp $APP worker $worker | grep -v "There is no such worker for this app_name/deployment_name." | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment