bash redirect stderr for time command? -
an application stderr being run using time command. want output of application redirected /dev/null, stderr redirected log, , timing redirected log.
executing command:
time cmd args >/dev/null 2>log
redirects cmd, not time command timings.
if goal capture time
output log file, use:
{ time seq 1000 >/dev/null; } 2>log
Comments
Post a Comment