I'm reading The Unix Programming Environment.
There is an exercise question to print how much CPU time you have consumed when you log off by editing .profile.
I tried with this
trap 'times' 0 1 2 15
but it is not working.
|
I'm reading The Unix Programming Environment.
There is an exercise question to print how much CPU time you have consumed when you log off by editing I tried with this
but it is not working. |
|||
|
|
|
In bash, the |
|||
|
|
|
From the tag, I'm guessing that this is in bash. Bash defaults to Alternatively, you could put the following in
|
|||
|
|