[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
time doesn't behave
From: |
EHV-00 |
Subject: |
time doesn't behave |
Date: |
Fri, 6 Apr 2001 15:19:04 +0200 |
Dear all,
I am trying to 'time' a process and grep the output.
For some reason the 'time' is not behaving correctly:
===>
eelco@ns6:~> time namp localhost 2>&1 | grep real
real 0m0.455s
user 0m0.100s
sys 0m0.190s
===<
While this should be:
===>
eelco@ns6:~> time namp localhost 2>&1 | grep real
real 0m0.455s
===<
The problem seems to be that the output of time bypasses the grep, venthough
I've redirected stderr to stdout.
Any idea what's wrong?
Thanx,
Eelco Langelaan
Philips Corporate IT, The Netherlands
- time doesn't behave,
EHV-00 <=