What does this mean?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting What does this mean?
# 1  
Old 10-21-2013
What does this mean?

Hello all,
I am a newbie in shell scripting.
I want to know what does the below text means?


Code:
6.355u 1.679s 0:12.68 63.2% 0+0k 0+0io 0pf+0w


I am getting this line (on terminal) after every successful execution of my script.

Thanks in advance . . Smilie

-MD

Last edited by Scrutinizer; 10-23-2013 at 04:12 AM.. Reason: Make it more readable . .; code tags
# 2  
Old 10-21-2013
Hi

Thats what your script does, you're supposed to know what YOUR script does....
Whats the content of it?

Cheers
# 3  
Old 10-21-2013
Well it can be anything . .
I have written three scripts by now and after successful execution of each script, there's a message as shown before.
Only the field values are changing . .

Like,
Code:
5.85u 4.679s 0:16.78 105.2% 1+6k 7+8io 5pf+7w

I want to know the significance of each field . .

Thanks for reply Smilie

-MD

Last edited by Scrutinizer; 10-23-2013 at 04:12 AM.. Reason: code tags
# 4  
Old 10-21-2013
Share your scripts, so we know what it does, so we can tell you which values are from where and identify it.

Give us information to work with.
Without know/see what your script does - its like mind reading.
Obviously that doesnt work.
# 5  
Old 10-21-2013
Could you show us the output from the following commands pasted into CODE tags to make them easier to read please?
  • trap
  • alias
  • /bin/echo "Hello"
- or wherever echo is. I want it to start a process though rather than using a built-in.

I'm guessing that someone has set a trap for DEBUG that does some accounting, but I may be wrong.

Does that show anything up?





Robin
Liverpool/Blackburn
UK
# 6  
Old 10-21-2013
Quote:
Originally Posted by manands07
Well it can be anything . .
I have written three scripts by now and after successful execution of each script, there's a message as shown before.
Only the field values are changing . .

Like,
5.85u 4.679s 0:16.78 105.2% 1+6k 7+8io 5pf+7w

I want to know the significance of each field . .

Thanks for reply Smilie
I'm guessing -- only guessing, mind you -- that something in your scripts is using the shell's time builtin. This can change a lot across different systems but I recognize some parts of it:

It's telling you how much time something spent running as User(5.85 seconds), as System (4.679 seconds), and a total of 16.78 seconds (so must have spent some seconds just sitting waiting for I/O).

Try time sleep 10 in your shell.

The rest I'm not sure of. I'm not even sure what the "something" was since you refuse to post your script. What's your system? uname -a if you don't know.
This User Gave Thanks to Corona688 For This Post:
# 7  
Old 10-22-2013
Thanks for your replies guys Smilie

Below is a simple perl code . . Check it out . .


Code:
 
#! usr/bin/perl
use POSIX;
use strict;
use warnings;
my $file = $ARGV[0];
open FILE,'<', $file;
while (my $line = <FILE>){print $line;}
my $var = 5;
print $var;

it gave me

Code:
 
0.355u 1.00s 0:1.01 110.2% 0+0k 0+0io 0pf+0w

on the terminal, after printing the contents of the file that I've given as ARGV[0] . .
And yes, that file does not contain the above line . .

uname -a gives,
Code:
 
Linux <username> 2.6.18-274.3.1.el5 #1 SMP <date & time> x86_64 GNU/Linux

I am using Redhat 5.0 . .

Also, time sleep 10 gives,
Code:
 
0.000u 0.000s 0:10.00 0.0% 0+0k 0+0io 0pf+0w

so I guess you're on right track, Corona688

So, What does the rest four fields signify?

Thanks,
-MD

Last edited by Scrutinizer; 10-23-2013 at 04:12 AM.. Reason: code tags instead of quote tags
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question