WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

Re: [Xen-API] strange bug with xe and bash

To: George Shuklin <george.shuklin@xxxxxxxxx>
Subject: Re: [Xen-API] strange bug with xe and bash
From: Mike McClurg <mike.mcclurg@xxxxxxxxxx>
Date: Sat, 3 Sep 2011 13:48:27 +0100
Cc: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sat, 03 Sep 2011 05:48:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1314173793.4656.8.camel@mabase>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <1314173793.4656.8.camel@mabase>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20110807 Icedove/5.0
On 08/24/2011 09:16 AM, George Shuklin wrote:
Good day.

Found incredibly strange and amazing bug.

If this command issued:

echo $(xe host-list name-label=$(hostname) ) | cat

bash displays: [1]+  Stopped

I don't press Ctrl-Z, it happens by itself.

This works in bash, don't work in csh. This happens irregularly (2-3
times going background, 1-2 times not).

You can replace 'hostname' and 'cat' with any other commands - only xe
in middle does matter. If 'hostname' replaced by text bug not appear.

I could not say I really it bother me, but it really strange. What
happens?


Yes, I've noticed this too. This has to do with the way that xe is grabbing the terminal. You may have also noticed this same problem when you pipe xe output to less. When you pipe to less, you have to hit enter after every keypress, instead of less recognising keypreses as they occur.

You can work around this by doing something like this: 'cat /dev/null | xe <command> | less'.

Mike

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

<Prev in Thread] Current Thread [Next in Thread>