Re: [Linux-ha-dev] "bashism" in external/rackpdu stonith plugin

2011-01-04 Thread Dejan Muhamedagic
On Mon, Jan 03, 2011 at 06:55:21PM +0100, Raoul Bhatia [IPAX] wrote: > On 12/29/2010 05:36 PM, Raoul Bhatia [IPAX] wrote: > > On 12/29/2010 04:12 PM, Dejan Muhamedagic wrote: > >> What seems to me the best is to simply avoid the issue and do: > >> > >>local names > >>names=`echo "$snmp_resu

Re: [Linux-ha-dev] "bashism" in external/rackpdu stonith plugin

2011-01-03 Thread Raoul Bhatia [IPAX]
On 12/29/2010 05:36 PM, Raoul Bhatia [IPAX] wrote: > On 12/29/2010 04:12 PM, Dejan Muhamedagic wrote: >> What seems to me the best is to simply avoid the issue and do: >> >> local names >> names=`echo "$snmp_result" | cut -f2 -d'"' | tr ' ' '_' | tr '\012' ' '` >> >> Does that work for da

Re: [Linux-ha-dev] "bashism" in external/rackpdu stonith plugin

2010-12-29 Thread Raoul Bhatia [IPAX]
On 12/29/2010 04:12 PM, Dejan Muhamedagic wrote: > What seems to me the best is to simply avoid the issue and do: > > local names > names=`echo "$snmp_result" | cut -f2 -d'"' | tr ' ' '_' | tr '\012' ' '` > > Does that work for dash? hi, looks fine. i'll see if any error pops up dur

Re: [Linux-ha-dev] "bashism" in external/rackpdu stonith plugin

2010-12-29 Thread Dejan Muhamedagic
Hi, On Wed, Dec 29, 2010 at 03:32:47PM +0100, Raoul Bhatia [IPAX] wrote: > hi, > > i today stumbled across a problem in the external/rackpdu stonith > plugin: > > my outlets are named: > > > iso.3.6.1.4.1.318.1.1.12.3.3.1.1.2.1 = STRING: "Outlet 1 XL" > > iso.3.6.1.4.1.318.1.1.12.3.3.1.1.2.2 =

[Linux-ha-dev] "bashism" in external/rackpdu stonith plugin

2010-12-29 Thread Raoul Bhatia [IPAX]
hi, i today stumbled across a problem in the external/rackpdu stonith plugin: my outlets are named: > iso.3.6.1.4.1.318.1.1.12.3.3.1.1.2.1 = STRING: "Outlet 1 XL" > iso.3.6.1.4.1.318.1.1.12.3.3.1.1.2.2 = STRING: "b" > iso.3.6.1.4.1.318.1.1.12.3.3.1.1.2.3 = STRING: "m" > iso.3.6.1.4.1.318.1.1.12.