It seems that running an SSH task on a remote Linux server outputs everything on the same line.
The logs are missing line breaks which otherwise output fine when using an external SSH client.
Is the plugin mangling newlines?
Hi Patrick,
I have a bit of clumsy workaround for this. Use carriage return instead of newlines. ( ms-dos vs unix line ends )
Here is a bit of sample code I use in my scripts:
echo -e "\r" [ -w /data/ ] && echo -e "script\t`date '+%d-%b-%Y %H:%M:%S'`\t /data is writeable\r" && cd /data [ -w /data/ ] || echo -e "script\t`date '+%d-%b-%Y %H:%M:%S'`\t /data is NOT writeable\r" [ -w /data/ ] || exit 1
It doesn't look very nice but it works for my testers on reading log-output. It looks like this:
simple 22-Jul-2013 13:42:41 Command: stdout = script 22-Jul-2013 13:42:42 /data is writeable
Hope this helps you.
I can't believe that anyone else complains about this. Sometimes I want to give up from Bamboo!!!!!
BTW your solution did not work for me Maurice
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.