Sponsored Content
Full Discussion: What does this mean?
Top Forums Shell Programming and Scripting What does this mean? Post 302866387 by manands07 on Tuesday 22nd of October 2013 12:04:01 AM
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
 
TIME(3F)																  TIME(3F)

NAME
time, ctime, ltime, gmtime - return system time SYNOPSIS
integer function time() character*(*) function ctime (stime) integer stime subroutine ltime (stime, tarray) integer stime, tarray(9) subroutine gmtime (stime, tarray) integer stime, tarray(9) DESCRIPTION
Time returns the time since 00:00:00 GMT, Jan. 1, 1970, measured in seconds. This is the value of the UNIX system clock. Ctime converts a system time to a 24 character ASCII string. The format is described under ctime(3). No 'newline' or NULL will be included. Ltime and gmtime disect a UNIX time into month, day, etc., either for the local time zone or as GMT. The order and meaning of each element returned in tarray is described under ctime(3). FILES
/usr/lib/libU77.a SEE ALSO
ctime(3), itime(3F), idate(3F), fdate(3F) 4.2 Berkeley Distribution May 15, 1985 TIME(3F)
All times are GMT -4. The time now is 11:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy