Jason Dixon wrote: > On Thu, 2003-08-21 at 17:38, Peram's List wrote: >> I appreciate your quick response. >> Is there any way I get the time taken for the execution of a script >> from the script itself instead of typing it at the command line. > > To be honest, I can't get GNU time to even honor its own flags. It's > also not working properly with respect to stderr redirection. I'm at > a loss here.
Bash has its own built-in version of time. The GNU version of time needs to be called with a full path. To redirect only stderr to a file... (per the man pages) /usr/bin/time -o /tmp/stderr.out ls -l or using standard shell redirection... /usr/bin/time ls -l 2>/tmp/stderr.out Steve Cowles -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list