01-08-2015
Might be an option if the OP's intentions were clear...
This User Gave Thanks to RudiC For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Can anyone please let me know how do I reduce files into a specific number of files by cat'ing files?
For example:
15 files must be reduced to 1 or 5 or 9 (possible values 1 to 14) (5 Replies)
Discussion started by: aryanbelank
5 Replies
2. Shell Programming and Scripting
Hi
I work in ksh88 and have a file which has several "set -A " statements:
set -A PNUM_LSTM 2713 4124 2635 270 2529 2259 2214
set -A PNUM_LSTM $*
for pn in ${PNUM_LSTM}
etc...
I need to add another number, lets say 555, to the first line ONLY so only the
the first line will be updated... (2 Replies)
Discussion started by: aoussenko
2 Replies
3. Shell Programming and Scripting
I have a file with a list of config files numbered on the lefthand side 1-300. I need to have bash read each lines number and assign it to a variable so it can be chosen by the user called by the script later.
Ex. 1 some data
2 something else
3 more stuff
which number do you... (1 Reply)
Discussion started by: glev2005
1 Replies
4. Shell Programming and Scripting
I have a file with contents similar to this.
abcd
1234
4567
7666
jdjdjd
89289
9382
92
jksdj
9823
298
I want to write a shell script which count the number of lines that start with the number (disregard the lines starting with alphabets) (1 Reply)
Discussion started by: grajp002
1 Replies
5. Shell Programming and Scripting
I need to calculate the biggest number in array size n.
Example: Users enter: 1 7 4 9
The biggest number is : 9
Simple but I'm really new on this on Shell/Bash! Anything will be helpful! Thanks!
#!/bin/bash
printf "\tEnter a list of numbers, with spaces: "
read -a ARRAY
BIG=$1... (5 Replies)
Discussion started by: Sundown
5 Replies
6. UNIX and Linux Applications
Hey all
Im looking to reduce the number of cpus available on a certain node in our cluster available for jobs using SGE.
i.e. we have one node that has 24 cpus available for jobs on SGE, i would like to reduce that to 16. Thanks (1 Reply)
Discussion started by: olifu02
1 Replies
7. Shell Programming and Scripting
Hello All,
I have created a script which will show the errors from a log file in between a particular section.
v1=$(sed -n "/Main Report/,/Main Report End/p" input | grep -i 'Unable to find'
v2=$(sed -n "/Main Report/,/Main Report End/p" input | grep -i 'Unable to add'
if
then
echo... (5 Replies)
Discussion started by: Vikram_Tanwar12
5 Replies
8. Shell Programming and Scripting
Hello,
I am newbie to bash scripting. Could someone help me with the following.
I have log file with output as shown below
**************************LOG*************************
11/20/2013 9:11:23.64 Pinging xx.xx.xx.xx with 32 bytes of data:
11/20/2013 9:11:23.64 Reply from xx.xx.xx.xx:... (4 Replies)
Discussion started by: meena_2013
4 Replies
9. Programming
Hello,
I think there's an easier way to do this but can't seem to recall but given an array of animals and an initial value is a random index in the array, here it's 3.
3,4,5,4,3,2,1,0,1,2,3,4,5,4,3,2,1,0... inifinite repeat
a quick brute force solution i came up with was two functions, i... (6 Replies)
Discussion started by: f77hack
6 Replies
10. UNIX for Beginners Questions & Answers
I have a directory of files, I can show the number of lines in each file and order them from lowest to highest with:
wc -l *|sort
15263 Image.txt
16401 reference.txt
40459 richtexteditor.txt
How can I also print the number of unique lines in each file?
15263 1401 Image.txt
16401... (15 Replies)
Discussion started by: spacegoose
15 Replies
LEARN ABOUT DEBIAN
hobbitd_client
HOBBITD_CLIENT(8) System Manager's Manual HOBBITD_CLIENT(8)
NAME
hobbitd_client - hobbitd worker module for client data
SYNOPSIS
hobbitd_channel --channel=client hobbitd_client [options]
DESCRIPTION
hobbitd_client is a worker module for hobbitd, and as such it is normally run via the hobbitd_channel(8) program. It receives hobbitd
client messages sent from systems that have the the Xymon client installed, and use the client data to generate the Xymon status messages
for the cpu-, disk-, memory- and procs-columns. It also feeds Xymon data messages with the netstat- and vmstat-data collected by the
client.
When generating these status messages from the client data, hobbitd_client will use the configuration rules defined in the hobbit-
clients.cfg(5) file to determine the color of each status message.
OPTIONS
--clear-color=COLOR
Define the color used when sending "msgs", "files" or "ports" reports and there are no rules to check for these statuses. The
default is to show a "clear" status, but some people prefer to have it "green". If you would rather prefer not to see these status
columns at all, then you can use the "--no-clear-msgs", "--no-clear-files" and "--no-clear-ports" options instead.
--no-clear-msgs
If there are no logfile checks, the "msgs" column will show a "clear" status. If you would rather avoid having a "msgs" column, this
option causes hobbitd_client to not send in a clear "msgs" status.
--no-clear-files
If there are no file checks, the "files" column will show a "clear" status. If you would rather avoid having a "files" column, this
option causes hobbitd_client to not send in a clear "files" status.
--no-clear-ports
If there are no port checks, the "ports" column will show a "clear" status. If you would rather avoid having a "ports" column, this
option causes hobbitd_client to not send in a clear "ports" status.
--no-ps-listing
Normally the "procs" status message includes the full process-listing received from the client. If you prefer to just have the moni-
tored processes shown, this option will turn off the full ps-listing.
--no-port-listing
Normally the "ports" status message includes the full netstat-listing received from the client. If you prefer to just have the moni-
tored ports shown, this option will turn off the full netstat-listing.
--config=FILENAME
Sets the filename for the hobbit-clients.cfg file. The default value is "etc/hobbit-clients.cfg" below the Xymon server directory.
--dump-config
Dumps the configuration after parsing it. May be useful to track down problems with configuration file errors.
--test Starts an interactive session where you can test the hobbit-clients.cfg configuration.
--debug
Enable debugging output.
FILES
~xymon/server/etc/hobbit-clients.cfg
SEE ALSO
hobbit-clients.cfg(5), hobbitd(8), hobbitd_channel(8), xymon(7)
Xymon Version 4.2.3: 4 Feb 2009 HOBBITD_CLIENT(8)