The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-27-2009
bdalmeida bdalmeida is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 5
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.