First, I care more about the exit code working. I want just the value. So currently I have
cloudmonkey set color false cloudmonkey createVM ... | grep ^id | awk -F' = ' '{print $2}' Darren > On Oct 27, 2013, at 9:48 PM, Prasanna Santhanam <t...@apache.org> wrote: > >> On Sun, Oct 27, 2013 at 04:49:35PM -0700, Darren Shepherd wrote: >> It would be really nice if the API failed if cloudmonkey exited with >> !=0 exit code. I've been scripting some stuff with cloud monkey and >> this makes it difficult. It would also be nice to somehow specific >> which field you want printed. So when I do a create command I can say >> just echo id value only. Would make my scripts much easier. > you can pipe with grep? > $ cloudmonkey createCommand | grep id > >> Darren > > -- > Prasanna., > > ------------------------ > Powered by BigRock.com >