On Tue, Sep 27, 2011 at 7:48 AM, Patrick Proniewski <pat...@patpro.net>wrote:

> while true; do
> ...

endless loop, forking iostat for 2 rows of data (-c 2), keeping only the
> last row because the first one is an artifact (tail -1).
>

That's a tricky one, it seems. If you're not restricted to shell code, you
could possibly do this using perl, PHP, or similar. You could open a pipe
for iostat, read a line from the pipe, and feed that line to your db (not in
the form of a raw text line but using the script language's sqlite3 API).
Repeat until the pipe is eof or a signal is caught or whatever.

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to