![]() |
|
|
|
|
|||||||
| 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 |
| Linux Going Big Time and Prime Time Against Windows, UNIX (WSJ) (Addict 3D) | iBot | UNIX and Linux RSS News | 0 | 06-21-2007 01:10 PM |
| Start time/end time and status of crontab job | thambi | Shell Programming and Scripting | 3 | 05-16-2007 07:24 AM |
| How To Provide Time Sync Using Nts-150 Time Server On Unix Network? | pesty | UNIX for Advanced & Expert Users | 2 | 03-21-2007 11:20 PM |
| Differences between time command and usr/bin/time | icedrake | UNIX for Dummies Questions & Answers | 1 | 04-24-2005 12:34 PM |
| default time in Solaris 8 for time-wait | eloquent99 | UNIX for Dummies Questions & Answers | 1 | 04-01-2003 06:45 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Regarding time
Hi,
How can I print the time in seconds(only). I have get the execution time of a script. Now I want the duration in seconds. How can I do it? Thanks in advance |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
With SECONDS variable.
Ex: Code:
i=0 while [ $i -le 10 ] do echo $SECONDS sleep 1 (( i += 1 )) done |
|
#3
|
|||
|
|||
|
Hi,
Is there any command to display time in seconds. Thanks in advance |
|
#4
|
||||
|
||||
|
SECONDS is a builtin varaible , it“s value is the number of seconds the script has been running.
Bye |
|
#5
|
|||
|
|||
|
Hi,
Thank you. It works |
|||
| Google The UNIX and Linux Forums |