Re: Reading mysql data stream into array

2011-05-06 Thread Greg Wooledge
On Fri, May 06, 2011 at 06:22:25PM +0200, Dirk wrote: > I was fooled by "echo $SHELL" returning "/bin/bash", but when I manually > call "/bin/bash" before running the above command (it is not a script > yet), it works. > > What the heck is going on here ... (!xmpf) The $SHELL variable does

Re: Reading mysql data stream into array

2011-05-06 Thread Dirk
Am 06.05.11 18:12, schrieb DJ Mills: On Fri, May 6, 2011 at 12:07 PM, Dirk wrote: Hi folks, I am going nuts trying to read the output of a mysql select statement into an array. I have consulted bashfaq and other sources and tried various approaches, but every jump was somewhat short, it se

Re: Reading mysql data stream into array

2011-05-06 Thread DJ Mills
On Fri, May 6, 2011 at 12:07 PM, Dirk wrote: > Hi folks, > > I am going nuts trying to read the output of a mysql select statement into > an array. I have consulted bashfaq and other sources and tried various > approaches, but every jump was somewhat short, it seems. > > This is what I tried (ba

Reading mysql data stream into array

2011-05-06 Thread Dirk
Hi folks, I am going nuts trying to read the output of a mysql select statement into an array. I have consulted bashfaq and other sources and tried various approaches, but every jump was somewhat short, it seems. This is what I tried (bash is 3.2.xx, I tried on MacOS X and Debian Lenny):