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
-MD
Last edited by Scrutinizer; 10-23-2013 at 04:12 AM..
Reason: code tags
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 . .
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.
#! 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