Skip to contentSkip to conversation

xendomains problem with long domain names?

Xen-users Henning Sprang 1 participant 1 message Jan 3, 2007 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 3 lines · Daniel P. Berrange

[...]
which is used to parse the output of 'xm list'. The 'cut -c0-17' bit looks like the obvious problem - truncating the name at 17 characters :-(

Yeah, thanks - I also just found that (couldn't resist looking it up even if busy with other things) - is there any good reason why this is made like it is?

Otherwise I'd propose the parseln function be changed to this:

parseln()
{
#name=echo "$1" | cut -c0-17 name=echo "$1" | cut -d " " -f 1 name=${name%% *}
#rest=echo "$1" | cut -c18- rest=echo "$1" | cut -d " " -f 2- read id mem cpu vcpu state tm < <(echo "$rest")
}

That seems to make it work fine here.

Henning

(copy to the devel list - or do you prefer another way to receive patches?)