From: Dan Nelson
Date: December 23 2002 7:21pm
Subject: Re: What terminates a query?
List-Archive: http://lists.mysql.com/mysql/128328
Message-Id: <20021223192130.GG1685@dan.emsphone.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
In the last episode (Dec 23), Matt Young said:
> My sql command pipes its result to a perl program (in batch mode) .
> but the perl program has no waf to tell when the query is finished.
> HTTP uses a blank line to signal the end. but there is no such thing
> for mysql.
If you are doing something like "mysql -e 'select * from mytable' |
perlprogram", just check for end-of-file.
--
Dan Nelson
dnelson@stripped