Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!eecae!tank!nucsrl!naim From: naim@eecs.nwu.edu (Naim Abdullah) Newsgroups: comp.unix.questions Subject: Timing Pipelines Message-ID: <3680044@eecs.nwu.edu> Date: 15 Mar 89 01:21:02 GMT Organization: Northwestern U, Evanston IL, USA Lines: 21 How can one time a pipeline in the csh/sh so that the time returned is that of the longest running process in the pipeline ? So, for example running it on "ls | sleep 5" should return 5 seconds assuming that the ls finishes before then. A sample solution would be % time sh -c "ls | sleep 5" but that involves creating an extra process. Is there a clever quoting trick that would avoid the extra process ? Thanks. Naim Abdullah Dept. of EECS, Northwestern University Internet: naim@eecs.nwu.edu Uucp: {oddjob, chinet, att}!nucsrl!naim