9 More Discussions You Might Find Interesting
1. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
2. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
3. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
4. Solaris
The system don't boot.
on the screen appears following:
press enter to maintenance (or type CTRL-D to continue)...I checked with format command.
... the slices "0-root","1-swap","2-backup" exist.
...the slises "3-var","6-usr" -unassigned. :( (16 Replies)
Discussion started by: wolfgang
16 Replies
5. Shell Programming and Scripting
logs:
"/home/abc/public_html/index.php"
"/home/abc/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
how to use "cut" or "awk" or "sed" to get the following result:
abc
abc
xyz
xyz
xyz (8 Replies)
Discussion started by: timmywong
8 Replies
6. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
7. Shell Programming and Scripting
hi All,
cat file_name | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g'
Can this be done by using sed or awk alone (4 Replies)
Discussion started by: harshakusam
4 Replies
8. Solaris
On a Solaris 8 print server we're continuously (every 2 minutes or so) getting these messages in the logs:
printd: Warning: Received SIGPIPE; continuing
I've applied this patch and restarted the printd daemon, but it doesn't help: #109320-22: SunOS 5.8: lp patch
Does anyone have any idea what... (4 Replies)
Discussion started by: aussieos
4 Replies
9. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
Sys::Statistics::Linux::NetStats(3pm) User Contributed Perl Documentation Sys::Statistics::Linux::NetStats(3pm)
NAME
Sys::Statistics::Linux::NetStats - Collect linux net statistics.
SYNOPSIS
use Sys::Statistics::Linux::NetStats;
my $lxs = Sys::Statistics::Linux::NetStats->new;
$lxs->init;
sleep 1;
my $stat = $lxs->get;
Or
my $lxs = Sys::Statistics::Linux::NetStats->new(initfile => $file);
$lxs->init;
my $stat = $lxs->get;
DESCRIPTION
Sys::Statistics::Linux::NetStats gathers net statistics from the virtual /proc filesystem (procfs).
For more information read the documentation of the front-end module Sys::Statistics::Linux.
NET STATISTICS
Generated by /proc/net/dev.
rxbyt - Number of bytes received per second.
rxpcks - Number of packets received per second.
rxerrs - Number of errors that happend while received packets per second.
rxdrop - Number of packets that were dropped per second.
rxfifo - Number of FIFO overruns that happend on received packets per second.
rxframe - Number of carrier errors that happend on received packets per second.
rxcompr - Number of compressed packets received per second.
rxmulti - Number of multicast packets received per second.
txbyt - Number of bytes transmitted per second.
txpcks - Number of packets transmitted per second.
txerrs - Number of errors that happend while transmitting packets per second.
txdrop - Number of packets that were dropped per second.
txfifo - Number of FIFO overruns that happend on transmitted packets per second.
txcolls - Number of collisions that were detected per second.
txcarr - Number of carrier errors that happend on transmitted packets per second.
txcompr - Number of compressed packets transmitted per second.
ttpcks - Number of total packets (received + transmitted) per second.
ttbyt - Number of total bytes (received + transmitted) per second.
METHODS
new()
Call "new()" to create a new object.
my $lxs = Sys::Statistics::Linux::NetStats->new;
Maybe you want to store/load the initial statistics to/from a file:
my $lxs = Sys::Statistics::Linux::NetStats->new(initfile => '/tmp/netstats.yml');
If you set "initfile" it's not necessary to call sleep before "get()".
It's also possible to set the path to the proc filesystem.
Sys::Statistics::Linux::NetStats->new(
files => {
# This is the default
path => '/proc',
netdev => 'net/dev',
}
);
init()
Call "init()" to initialize the statistics.
$lxs->init;
get()
Call "get()" to get the statistics. "get()" returns the statistics as a hash reference.
my $stat = $lxs->get;
raw()
The same as get_raw() but it's not necessary to call init() first.
get_raw()
Call "get_raw()" to get the raw data - no deltas.
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::NetStats(3pm)