The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Script to Check for Unix/Linux Passwords lucknowm Shell Programming and Scripting 1 05-29-2008 10:08 PM
unix script to check whether particular file exists and to find its size Balachandar Shell Programming and Scripting 9 02-05-2008 03:56 AM
How to check path exist or not in UNIX shell script suneelc UNIX for Dummies Questions & Answers 3 01-22-2008 08:36 AM
How to find the top 6 users (which consume most space)? RebelDac AIX 5 09-17-2007 07:36 PM
check in unix shell script so that no one is able to run the script manually adi_bang76 Shell Programming and Scripting 1 11-16-2006 10:43 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-05-2006
Rakesh Bhat Rakesh Bhat is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 8
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.
  #2 (permalink)  
Old 04-05-2006
alexop alexop is offline
Registered User
  
 

Join Date: Apr 2006
Posts: 26
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0