![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Passing global variable to a function which is called by another function | sars | Shell Programming and Scripting | 4 | 06-30-2008 08:39 AM |
| Function within function (Recurance) | chassis | UNIX for Dummies Questions & Answers | 2 | 09-19-2006 06:32 AM |
| function | mpang_ | Shell Programming and Scripting | 1 | 07-25-2006 09:16 PM |
| function | rkkiran | UNIX for Dummies Questions & Answers | 3 | 01-22-2002 12:07 AM |
| How to convert the "select" function into a "poll" function | rbolante | High Level Programming | 1 | 07-10-2001 07:49 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
TimeDiff function?
Hi,
Is there any function in Unix that could get the Time Differrence of two values? this would be used as statistic for how long a job completes, from start to finish.. Please help. thanks, Jet |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
# time find / -name host*
.... .... .... real 0m12.63s user 0m1.82s sys 0m8.44s # |
|
#3
|
|||
|
|||
|
Thanks..
Could you explain what the code do? |
|
#4
|
|||
|
|||
|
time <some command> - does what you want, return elapsed times
find / -name 'host*' - searches for all filenames on the system that start with "host" |
|
#5
|
||||
|
||||
|
Is there any way to find a execution time of a shell script which have number of commands?
|
|
#6
|
|||
|
|||
|
If you're asking what I think you are, it's time ./shell-script.sh
Or if you're asking for something that tells how many commands the shell script has executed, only the shell script knows. |
|
#7
|
||||
|
||||
|
Thanks for your reply. i know this time command but i need to make it in that shell script only.Like if shell script have n number of commands then need time as sum of time taken by all the commands.any help would be appreciated.
|
||||
| Google The UNIX and Linux Forums |