Skip to content

Instantly share code, notes, and snippets.

@havvg
Created February 5, 2011 23:58
Show Gist options
  • Save havvg/812938 to your computer and use it in GitHub Desktop.
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.
#!/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