can someone tell me the meaning of this commnad,
If you want to see a grand total of CPU time for a program when it finishes running, you can use the time command. At the Unix prompt, enter:
time java myprog
Replace myprog with the name of the program you are running. The following is an... (2 Replies)
Is there any way I could run two commands at the same time? Say I have in my script a command that grep a keyword from a huge size file:
zgrep $KEYWORD $FILE
and because this is a large file it takes a while to finish, so I would want that while zgrep is doing its job, I have a function that... (10 Replies)
Hi all,
Can someone extending on what the time field is explaining in a ps command.
Man page only has this:
time The cumulative execution time for the process.
Is this a combined CPU time? if that is the case then it should be impossible to have a 00:00 time on any process.
... (1 Reply)
Hi all,:o
i am new to shell scripting and i have aproblem like i just want to extractthe uptime of the system from an uptime command which gives the output as the Current time , how long the system has been running,how many users are surrently logged on and the system load averages for past 1,5,... (5 Replies)
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... (4 Replies)
I wondered if someone could point out the differences between the time commmand and usr/bin/time and the accuracy one might have over another.
Also, is there a website or two a person could maybe link for me to describe the differences?
Thank you for your time. (2 Replies)
Hello all,
I need to find, what time a particular command was run in one of our AIX box. In our environment, we use 'powerbroker' to login as root and there are so many people who use this. I tried history command, which shown me similar to below:
406 ls -l | *user*
407 ls -l... (1 Reply)
Hello all,
Part of a script I am writing needs to check for a certain date..
example
If it is saturday between 1pm and 2pm, kick off this script.../directory/script.sh
need some pointers as to what the best way to do this is. (3 Replies)
Hi,
I am running the following command:
ps -efk -o "user pid ppid pcpu pmem stime time vsz rssize args"
But TIME column is always 00:00:00 . The AIX Actual version is 6.1.8.0
When I run it on another server that I have with version 6.1.0.0, the output is valid.
Regards,
Amit (6 Replies)
Discussion started by: amitlib
6 Replies
LEARN ABOUT ULTRIX
time
time(1) General Commands Manual time(1)Name
time - time a command
Syntax
time command
/bin/time command
Description
The command lets the specified command execute and then outputs the amount of elapsed real time, the time spent in the operating system,
and the time spent in execution of the command. Times are reported in seconds and are written to standard error.
If you are using any shell except the C shell, you can give the command as shown on the first line of the Syntax section. If you are using
the C shell, you must use the command's full pathname as shown on the second line of the Syntax section. If you do not use the full path-
name, will execute its own built-in command that supplies additional information and uses a different output format.
The command can be used to cause a command to be timed no matter how much CPU time it takes. For example:
% /bin/time cp /etc/rc /usr/bill/rc
0.1 real 0.0 user 0.0 sys
% /bin/time nroff sample1 > sample1.nroff
3.6 real 2.4 user 1.2 sys
This example indicates that the command used negligible amounts of user and system time and had an elapsed time of 1/10 second (0.1). The
command used 2.4 seconds of user time and 1.2 seconds of system time, and required 3.6 seconds of elapsed time.
Restrictions
Times are measured to an accuracy of 1/10 second. Thus, the sum of the user and system times can be larger than the elapsed time.
See Alsocsh(1)time(1)