[Monetdb-developers] How to not print on screen?
Hi, I wonder if there is a way to not print query results on screen? -- Thanks, Mo
Op 28-01-10 17:36, Mo Zhou schreef:
I wonder if there is a way to not print query results on screen but print the timer?
I thought recently the timer code went to stderr, while the query results went into stdout. In that case: mclient .... 1>/dev/null 2>yourfile Would get you the result in the file, maybe if you toy around with some pipes and tee to get them on screen. Stefan
On 28-01-2010 18:15:00 +0100, Stefan de Konink wrote:
Op 28-01-10 17:36, Mo Zhou schreef:
I wonder if there is a way to not print query results on screen but print the timer?
I thought recently the timer code went to stderr, while the query results went into stdout. In that case:
that commit was reverted again by Martin.
On Thu, Jan 28, 2010 at 06:20:44PM +0100, Fabian Groffen wrote:
On 28-01-2010 18:15:00 +0100, Stefan de Konink wrote:
Op 28-01-10 17:36, Mo Zhou schreef:
I wonder if there is a way to not print query results on screen but print the timer?
e.g., mclient -t ... | grep '^Timer ' mclient -t ... | tee output.file | grep ^Timer ' mclient -t ... > output.file ; grep ^Timer ' output.file Stefan
I thought recently the timer code went to stderr, while the query results went into stdout. In that case:
that commit was reverted again by Martin.
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4199 |
Thanks. I wonder if there are detailed statistics, like optimisation
time, query time, etc, besides timer. Is timer the whole waiting time
or only query time?
On Fri, Jan 29, 2010 at 6:45 AM, Stefan Manegold
On Thu, Jan 28, 2010 at 06:20:44PM +0100, Fabian Groffen wrote:
On 28-01-2010 18:15:00 +0100, Stefan de Konink wrote:
Op 28-01-10 17:36, Mo Zhou schreef:
I wonder if there is a way to not print query results on screen but print the timer?
e.g.,
mclient -t ... | grep '^Timer ' mclient -t ... | tee output.file | grep ^Timer ' mclient -t ... > output.file ; grep ^Timer ' output.file
Stefan
I thought recently the timer code went to stderr, while the query results went into stdout. In that case:
that commit was reverted again by Martin.
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4199 |
------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
-- Thanks, Mo
participants (4)
-
Fabian Groffen
-
Mo Zhou
-
Stefan de Konink
-
Stefan Manegold