07-24-2015
Hi agent.kgb,
Thanks for your brief explanation.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Folks
uptime
12:24pm up 2 days, 3:12, 4 users, load average: 0.00, 0.00, 0.00
what does the load average figure mean..
regards
Hrishy (2 Replies)
Discussion started by: xiamin
2 Replies
2. UNIX for Dummies Questions & Answers
I'm trying to get the uptime of my computer (Mac OS X) and I can go into the terminal and type "uptime" OK, and that gives me a string with the uptime in it. The problem is that the string changes a lot, and its very difficult to get the data I'm trying to extract out cleanly.
Now I have 3... (2 Replies)
Discussion started by: Freefall
2 Replies
3. UNIX for Dummies Questions & Answers
On HP-UX, the 13th argument of uptime is sometime the load and sometime the word AVERAGE:???
14 Jun 06 5:00pm up 44 days, 54 mins, 0 users, load average: 0.00, 0.02, 0.03
14 Jun 06 5:15pm up 44 days, 1:09, 0 users, load average: 0.00, 0.01, 0.01
When the time is in minutes, then the load... (1 Reply)
Discussion started by: qfwfq
1 Replies
4. UNIX for Dummies Questions & Answers
hello folks!
how can I display just the uptime without the current time, the word "up", and the load averages using the uptime command or some other command I do not know about? (13 Replies)
Discussion started by: MastaFue
13 Replies
5. Shell Programming and Scripting
Hi,
I need some help about a script i need to write.
I want to check , if some specific process, are running since 2 hours.
I tried to use a loop , grep my pid and use find -ctime on /proc directory, to list what i need.
for i in `ps -ef |grep process |grep -v grep|awk '{print $2}'`... (2 Replies)
Discussion started by: rokerij
2 Replies
6. UNIX for Advanced & Expert Users
Hi gurus,
Is it possible to get the time on when the server was re-started or does the output from who -b is the answer to my question? UNIX flavour is Solaris.
The uptime command gives information on how long the server has been up but I want to know when the server was started. The output... (4 Replies)
Discussion started by: newbie_01
4 Replies
7. UNIX for Dummies Questions & Answers
My Linux system was last rebooted few hours ago.
But it seems little confusing for me to figure out the exact reason behind it.
I guess following command should justify what i meant to say.
# date
Wed May 11 13:22:49 IST 2011
# last | grep "May 10"
reboot system boot 2.6.18-194.el5 ... (5 Replies)
Discussion started by: pinga123
5 Replies
8. Shell Programming and Scripting
Hi!
I want to extract the uptime from the output of the uptime command.
The output:
11:53 up 3:02, 2 users, load averages: 0,32 0,34 0,43
I just need the "3:02" part. How can I do this?
Dirk (6 Replies)
Discussion started by: Dirk Einecke
6 Replies
9. Shell Programming and Scripting
How to write a shell script which can generate server uptime report from the UNIX servers? (3 Replies)
Discussion started by: paventhan
3 Replies
10. War Stories
Hi All,
Having recently started a new job, a Data Center Migration in fact I have been tasked with looking at some of the older Solaris boxes when I came across this little gem.
nismas# uname -a
SunOS nismas 5.5.1 Generic_103640-27 sun4u sparc SUNW,Ultra-1
nismas# uptime
10:37am up 2900... (2 Replies)
Discussion started by: gull04
2 Replies
LEARN ABOUT SUSE
pdl::autoloader
AutoLoader(3) User Contributed Perl Documentation AutoLoader(3)
NAME
PDL::AutoLoader - MatLab style AutoLoader for PDL
SYNOPSIS
use PDL::AutoLoader;
$a = func1(...); # Load file func1.pdl
$b = func2(...); # Load file func2.pdl
$PDL::AutoLoader::Rescan = 1; # Enable re-scanning
DESCRIPTION
This module implements a MatLab style AutoLoader for PDL. If a unknown function 'func()' is called then a file 'func.pdl' is searched for
and if found is read in to define 'func()' which is then executed.
Files are seached for using the directories in seach path @PDLLIB, which is initialised from the shell environment variable "PDLLIB" which
is a colon seperated list of directories.
e.g. in csh
setenv PDLLIB "/home/kgb/pdllib:/local/pdllib"
Note this is kept seperate from "PERL5LIB" just in case.
As an added bonus, you can use a leading '+' on a directory name to search not just that directory but the entire directory tree under it
(excluding symlinks). The subdirs are determined by explicit search, and searches occur at startup and again each time you change the
number of elements in @PDLLIB.
For example,
setenv PDLLIB "+~kgb/PDL"
will search /home/kgb/PDL and all its subdirectories for .pdl files.
AUTO-SCANNING
The variable $PDL::AutoLoader::Rescan controls whether files are automatically re-scanned for changes at the "perldl" command line.
If "$PDL::AutoLoader::Rescan == 1" and the file is changed then the new definition is reloaded auto-matically before executing the "perldl"
command line. Which means in practice you can edit files, save changes and have "perldl" see the changes automatically.
The default is '0' - i.e. to have this feature disabled.
As this feature is only pertinent to the "perldl" shell it imposes no overhead on PDL scripts. Yes Bob you can have your cake and eat it
too!
Note: files are only re-evaled if they are determined to have been changed according to their date/time stamp.
No doubt this interface could be improved upon some more. :-)
Sample file:
sub foo { # file 'foo.pdl' - define the 'foo' function
my $x=shift;
return sqrt($x**2 + $x**3 + 2);
}
1; # File returns true (i.e. loaded successfully)
AUTHOR
Copyright(C) 1997 Karl Glazebrook (kgb@aaoepp.aao.gov.au); several extensions by Craig DeForest (deforest@boulder.swri.edu) All rights
reserved. There is no warranty. You are allowed to redistribute this software / documentation under certain conditions. For details, see
the file COPYING in the PDL distribution. If this file is separated from the PDL distribution, the copyright notice should be included in
the file.
BUGS
No doubt this interface could be improved upon some more. :-)
Will probably be quite slow if "$PDL::AutoLoader::Rescan == 1" and thousands of functions have been autoloaded.
There could be a race condition in which the file changes while the internal autoloader code is being executed but it should be harmless.
Probably has not been tested enough!
PDL::AutoLoader::expand_path
Expand a compactified path into a dir list
You supply a pathlist and leading '+' and '~' characters get expanded into full directories. Normally you don't want to use this -- it's
internal to the autoloader -- but some utilities, like the online documentation searcher, need to be able to use it.
perl v5.12.1 2009-10-17 AutoLoader(3)