10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
data:
hostcomment {
host_name=myhost01
entry_type=1
comment_id=1
source=0
persistent=1
entry_time=1415723753
expires=0
expire_time=0
author=hpsm
comment_data=IM0837437472
}
program {
modified_host_attributes=1
modified_service_attributes=1
enable_notifications=1... (20 Replies)
Discussion started by: SkySmart
20 Replies
2. Shell Programming and Scripting
I have an awk script that gives the following output:
Average end-to-end transmission delay 2.7 to 5.7 is 0.635392 seconds
Average end-to-end transmission delay 2.1 to 5.1 is 0.66272 seconds
Average end-to-end transmission delay 2.1 to 5.1 is 0.691712 seconds
Average end-to-end transmission... (4 Replies)
Discussion started by: ENG_MOHD
4 Replies
3. Programming
Input_file_1
#content_1
A
#content_2
AF
#content_3
AAR
#content_4
ASEI
#content_5
AS
#content_6
ADFSFGS
Rules:
1. Based on c program to calculate content of each "#". Result getting from the above Input_file_1 are 1,2,3,4,2,7;
2. Sort length on reverse order (descending order).... (5 Replies)
Discussion started by: cpp_beginner
5 Replies
4. Shell Programming and Scripting
Long list of input file:
AGDRE1 0.1005449050
AGDRE1 2.1005443435
AGDRE1 1.2005449050
AGDRE1 5.1005487870
AASFV3 50.456304789
AASFV3 2.3659706549
AASFV3 6.3489807860
AASFV3 3.0089890148
RTRTRS 5.6546403546
.
.
Desired output file:
AGDRE1 8.5021829410
AASFV3 62.180245240... (2 Replies)
Discussion started by: perl_beginner
2 Replies
5. Shell Programming and Scripting
Hi everyone, just some simple question...
i've been using a awk script to calculate my data...
i have 3 files:
file a1.txt:
2
3
4
5
3
4
file a2.txt:
4
5
6
7
8 (1 Reply)
Discussion started by: yat
1 Replies
6. Shell Programming and Scripting
Hello,
I'm trying to create a shell script (#!/bin/sh) which should tell me the age of a file in minutes...
I have a process, which delivers me all 15 minutes a new file and I want to have a monitoring script, which sends me an email, if the present file is older than 20 minutes.
To do... (10 Replies)
Discussion started by: worm
10 Replies
7. Shell Programming and Scripting
Hi,
I have a file with one column data (sample below) and I am trying to write a shell script to calculate the difference between consecutive data valuse i.e
Var = Ni -N(i-1)
0.3141
-3.6595
0.9171
5.2001
3.5331
3.7022
-6.1087
-5.1039
-9.8144
1.6516
-2.725
3.982
7.769
8.88 (5 Replies)
Discussion started by: malandisa
5 Replies
8. Shell Programming and Scripting
My input file:
data_5 Ali 422 2.00E-45 102/253 140/253 24
data_3 Abu 202 60.00E-45 12/23 140/23 28
data_1 Ahmad 256 7.00E-45 120/235 140/235 22
data_4 Aman 365 8.00E-45 15/65 140/65 20
data_10 Jones 869 9.00E-45 65/253 140/253 18... (12 Replies)
Discussion started by: patrick87
12 Replies
9. Shell Programming and Scripting
Hi,
I have two time series data (below) merged into a file.
t1 and t2 are in unit of second
I want to calculate the average of V1 every second and count how many times "1" in V2 is occur within a second
Input File:
t1 V1 t2 V2
10.000000... (5 Replies)
Discussion started by: nica
5 Replies
10. HP-UX
I have a question as below and i need to write a shell or perl script for this query:My Input file looks like below
RNo Marks
12 50
15 70
18 80
12 40
13 55
18 88
13 75... (4 Replies)
Discussion started by: smacherla
4 Replies
LBCDCLIENT(1) User Commands LBCDCLIENT(1)
NAME
lbcdclient - Query a remote lbcd daemon for system load
SYNOPSIS
lbcdclient [-2] [-s service[,service ...]] host ...
DESCRIPTION
lbcdclient sends a query packet to a remote lbcd server and prints the results. The result output will look something like this:
btime 1092858021 ctime 1092960298 utime 1092955199
load l1 96 l5 69 l15 57
total 0 unique 0 console 0
tmp full 0 P_tmpdir full 2
services 0 pads 0 0
service 0: weight 1 increment 1
btime is the time of the last system boot in seconds since epoch. ctime is the current system time in seconds since epoch. utime is the
last modification time of the information about logged in users in seconds since epoch.
The load line gives the one-minute (l1), five-minute (l5), and fifteen-minute (l15) load averages, multiplied by 100.
The next line gives the count of logged-in users. total gives the count of all logged-in users, unique lists the total number of unique
users, and console is 1 if a user is logged in to the console of the system.
tmp full is the percentage used in the system /tmp directory and P_tmpdir full is the percentage full in the system /var/tmp directory.
Finally, the last lines give information for each service, using the extended service response for the version three packet format. The
first line gives the count of number of configured services minus one. (The pads numbers are reserved space in the packet and will gener-
ally always be zero.) Then, each subsequent line lists the weights and increments for each service lbcd is monitoring on the system.
If the -2 option is used, lbcdclient will send a version two packet instead, and the returned results will not include the services line
and everything after that.
OPTIONS
-2 Send a version two protocol packet instead of a version three packet. Version two doesn't support the separate service weights.
-s service,[service ...]
Request information for the specified service names. It's not entirely clear whether this works correctly.
SEE ALSO
lbcd(8)
The current version of this program is available from its web page at <http://www.eyrie.org/~eagle/software/lbcd/>.
AUTHORS
Written by Larry Schwimmer. Currently maintained by Russ Allbery <rra@stanford.edu>.
3.3.0 2006-10-06 LBCDCLIENT(1)