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
 
shutdown(8)						      System Manager's Manual						       shutdown(8)

NAME
shutdown - bring the system down SYNOPSIS
shutdown [OPTION]... TIME [MESSAGE] DESCRIPTION
shutdown arranges for the system to be brought down in a safe way. All logged-in users are notified that the system is going down and, within the last five minutes of TIME, new logins are prevented. TIME may have different formats, the most common is simply the word 'now' which will bring the system down immediately. Other valid for- mats are +m, where m is the number of minutes to wait until shutting down and hh:mm which specifies the time on the 24hr clock. Once TIME has elapsed, shutdown sends a request to the init(8) daemon to bring the system down into the appropriate runlevel. This is performed by emitting the runlevel(7) event, which includes the new runlevel in the RUNLEVEL environment variable as well as the previous runlevel (obtained from the environment or from /var/run/utmp) in the PREVLEVEL variable. An additional INIT_HALT variable may be set, this will contain the value HALT when bringing the system down for halt and POWEROFF when bringing the system down for power off. OPTIONS
-r Requests that the system be rebooted after it has been brought down. -h Requests that the system be either halted or powered off after it has been brought down, with the choice as to which left up to the system. -H Requests that the system be halted after it has been brought down. -P Requests that the system be powered off after it has been brought down. -c Cancels a running shutdown. TIME is not specified with this option, the first argument is MESSAGE. -k Only send out the warning messages and disable logins, do not actually bring the system down. ENVIRONMENT
RUNLEVEL shutdown will read the current runlevel from this environment variable if set in preference to reading from /var/run/utmp FILES
/var/run/utmp Where the current runlevel will be read from; this file will also be updated with the new runlevel. /var/log/wtmp A new runlevel record will be appended to this file for the new runlevel. NOTES
The Upstart init(8) daemon does not keep track of runlevels itself, instead they are implemented entirely by its userspace tools. See runlevel(7) for more details. AUTHOR
Written by Scott James Remnant <scott@netsplit.com> REPORTING BUGS
Report bugs at <https://launchpad.net/upstart/+bugs> COPYRIGHT
Copyright (C) 2009 Canonical Ltd. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. SEE ALSO
runlevel(7) init(8) telinit(8) reboot(8) Upstart 2009-07-09 shutdown(8)
All times are GMT -4. The time now is 02:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy