|
Time Command - Part 2
I am trying to collect some scripts performance. I wrote:
#!/usr/local/bin/bash
echo Locked Objects
time /webaplic/monitor_exp_funcional.sh NUM_LOCKED_OBJ
echo Users On
time /webaplic/monitor_exp_funcional.sh USERS_ON
Then I call "test.sh > Results.out"
Obviously, the time command send the stdou to standard erro. So, I should call "test.sh 2> Results.out". But I also want the echo inside the script.
How can I do it?
Thanks in adavance.
|