06-23-2008
On BSD both -ef and ax return 0 on exit.
A successful command returns a 0, while an unsuccessful one returns a non-zero value that usually may be interpreted as an error code.
Last edited by danmero; 06-23-2008 at 05:47 PM..
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Since I failed a test that I didn't have the chance to study for, my wonderful instructor told me to write a paper about BSD sys 5. I can't find anything...does it even exist yet??? If you have any input, I would love you forever if you can enlighten me ASAP. (2 Replies)
Discussion started by: Toughgirl27
2 Replies
2. Solaris
Hi
I would like to know the difference between System V release and BSD style release.
Regards,
Raja (2 Replies)
Discussion started by: RajaRC
2 Replies
3. UNIX for Dummies Questions & Answers
What do employers look for?
I have my B.S in Comp Sci and minor in chemistry from UNC.
But my GPA is a bit low (3.0)
I'm studying for my Sun Solaris 9 certification.
Is a certification and a Bachelors enough to get a job?
Or do you need some related work experience?
How hard is it to... (2 Replies)
Discussion started by: CapsuleCorpJX
2 Replies
4. BSD
for all you unix/linux interested heres an online book for free that covers the basics of BSD SysV Unix commands and applications . giving the average linux user a perspective on the differences in context of the two operating systems and for BSD users covers material as a refernce guide.
... (0 Replies)
Discussion started by: moxxx68
0 Replies
5. UNIX for Dummies Questions & Answers
Hi
I am a new comer for Unix sys. My Unix experience just less than half a year. Now Im going to purchase a notebook to install Unix system, but I have no idea of the mini setting for the laptop that are able to run Unix fluently. Is that anyone can tell me? Please give more options or... (1 Reply)
Discussion started by: Julius
1 Replies
6. AIX
I have worked on AIX for a number of years now and want to upskill to Sys Admin. My problem is my employer won't give root access etc to their servers so I must find my own way of training. Can anyone suggest a virtual environment I could use to train for AIX sys admin tasks, or suggest an old... (7 Replies)
Discussion started by: jackmeadow
7 Replies
7. Shell Programming and Scripting
Hi All,
can anybody explain me how to ftp files from local system to unix server using Shell scripting without using any softwares.
i have developed some code but its not wrking.
lclpath=/dba58/d039/ftppubd/ajay
echo $lclpath
cd $lclpath
user='rajesh'
pswd='rajesh'
host="3.209.136.253"... (5 Replies)
Discussion started by: rajesh_pola
5 Replies
8. Programming
(Apologies for any typos.)
OSX 10.12.3 AND Windows 10.
This is for the serious Python experts on at least 3.5.x and above...
In script format sys.stdout.write() AND sys.stderr.write() seems to work correctly.
Have I found a serious bug in the interactive sys.stdout.write() AND... (2 Replies)
Discussion started by: wisecracker
2 Replies
LEARN ABOUT DEBIAN
sys::statistics::linux::loadavg
Sys::Statistics::Linux::LoadAVG(3pm) User Contributed Perl Documentation Sys::Statistics::Linux::LoadAVG(3pm)
NAME
Sys::Statistics::Linux::LoadAVG - Collect linux load average statistics.
SYNOPSIS
use Sys::Statistics::Linux::LoadAVG;
my $lxs = Sys::Statistics::Linux::LoadAVG->new;
my $stat = $lxs->get;
DESCRIPTION
Sys::Statistics::Linux::LoadAVG gathers the load average from the virtual /proc filesystem (procfs).
For more information read the documentation of the front-end module Sys::Statistics::Linux.
LOAD AVERAGE STATISTICS
Generated by /proc/loadavg.
avg_1 - The average processor workload of the last minute.
avg_5 - The average processor workload of the last five minutes.
avg_15 - The average processor workload of the last fifteen minutes.
METHODS
new()
Call "new()" to create a new object.
my $lxs = Sys::Statistics::Linux::LoadAVG->new;
It's possible to set the path to the proc filesystem.
Sys::Statistics::Linux::LoadAVG->new(
files => {
# This is the default
path => '/proc',
loadavg => 'loadavg',
}
);
get()
Call "get()" to get the statistics. "get()" returns the statistics as a hash reference.
my $stat = $lxs->get;
EXPORTS
No exports.
SEE ALSO
proc(5)
REPORTING BUGS
Please report all bugs to <jschulz.cpan(at)bloonix.de>.
AUTHOR
Jonny Schulz <jschulz.cpan(at)bloonix.de>.
COPYRIGHT
Copyright (c) 2006, 2007 by Jonny Schulz. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-03-09 Sys::Statistics::Linux::LoadAVG(3pm)