1833771 Members
2126 Online
110063 Solutions
New Discussion

Re: HPUX stopwatch

 
SOLVED
Go to solution
Ferdie Castro
Advisor

HPUX stopwatch

Hi, Is there any command or probably you can help me develop a script that is like a stop watch. Example when I press enter key the clock watch stops then press enter key again it goes on and has the option the reset back to 0:00. thanks.
3 REPLIES 3
Michael Steele_2
Honored Contributor
Elmar P. Kolkman
Honored Contributor
Solution

Re: HPUX stopwatch

Or try the unix command time.

A simple solution would be:
time read dummy

If you want to keep this going, it would become:
while true
do
read dummy
done
Every problem has at least one solution. Only some solutions are harder to find.
Elmar P. Kolkman
Honored Contributor

Re: HPUX stopwatch

(Sorry, I meant 'time read dummy' in the while loop, of course)
Every problem has at least one solution. Only some solutions are harder to find.