how to check CPU consume time by unix script.

Hi,

I searched for any answers to this query bu in vain.

My question is , Is their any script or command to check how much CPU time is been taken by a script.

thanks.

using the command 'time' followed by the script will give you an output. In ksh it's a builtin, which means that it's more accurate and suffers from less overhead. There's also a binary standalong 'time' command which is found in /usr/bin/time on AIX systems, this can be used if called explicitly but the builtin is used in preference. See the man pages for 'time' and 'ksh's manpage and website for further details. You may want to read up a little on performance monitoring, cpu time and similar concepts in order to accurately interpret the information.