I¹ve confirmed that the import of readline causes the funky characters on a RHEL/CentOS hosts. From looking at the fix that you checked in, I¹ll be able to put in a safe workaround (as I can¹t pull down from master on the host in particular) by setting TERM to anything *other* than (anything beginning with) ³xterm², like, say, vt100 as you list in the fix.
For anyone else that comes across this, until there¹s a newer release of CloudMonkey, if you have this issue just set the environment variable TERM to something like ³vt100² in your script before any cloudmonkey calls and hopefully things will work as expectedŠ Rohit - thanks for looking into this. Definitely a strange error that took some digging to find the causeŠ -I On 12/5/14, 12:21 AM, "Rohit Yadav" <[email protected]> wrote: >Hi Ian, > >Thanks for reporting this, I found the issue it¹s caused by readline. The >chars are output just by importing it. You can confirm this on your shell >by: python -c 'import readline¹ > output.txt (read this text file). > >The escape chars I was talking about earlier are caused when output is >colored. I did not know about the above. It¹s fixed in master, please >build/install from latest master and confirm if it¹s fixed? Thanks. > >CloudMonkey 5.3.0 does not output colored text when run on bash or in >scripts, so if you¹re using in those scripts you don¹t need to set color >off. > >> On 05-Dec-2014, at 1:44 am, Ian Forde <[email protected]> wrote: >> >> Platform = RHEL 6.4. As I noted in my original message, I have disabled >> colors in both ~/.cloudmonkey/config AND on the command line. I >> definitely do not want the escape characters since this is intended for >>a >> bash script. > >Regards, >Rohit Yadav >Software Architect, ShapeBlue >M. +91 88 262 30892 | [email protected] >Blog: bhaisaab.org | Twitter: @_bhaisaab > > > >Find out more about ShapeBlue and our range of CloudStack related services > >IaaS Cloud Design & >Build<http://shapeblue.com/iaas-cloud-design-and-build//> >CSForge rapid IaaS deployment framework<http://shapeblue.com/csforge/> >CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/> >CloudStack Software >Engineering<http://shapeblue.com/cloudstack-software-engineering/> >CloudStack Infrastructure >Support<http://shapeblue.com/cloudstack-infrastructure-support/> >CloudStack Bootcamp Training >Courses<http://shapeblue.com/cloudstack-training/> > >This email and any attachments to it may be confidential and are intended >solely for the use of the individual to whom it is addressed. Any views >or opinions expressed are solely those of the author and do not >necessarily represent those of Shape Blue Ltd or related companies. If >you are not the intended recipient of this email, you must neither take >any action based upon its contents, nor copy or show it to anyone. Please >contact the sender if you believe you have received this email in error. >Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue >Services India LLP is a company incorporated in India and is operated >under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is >a company incorporated in Brasil and is operated under license from Shape >Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of >South Africa and is traded under license from Shape Blue Ltd. ShapeBlue >is a registered trademark.
