Hi,
I wish to store $string1 in $string1array a character in each array element.
Then i wish to echo the entire array to the screen so that it reads as the normal string again.
I have been trying with the code below but does not work. Please help...
To put string into array:
... (5 Replies)
I am facing a strange error while creating posix threads:
Given below are two snippets of code, the first one works whereas the second one gives a garbage value in the output.
Snippet 1
This works:
--------------
int *threadids;
threadids = (int *) malloc (num_threads * sizeof(int));
... (4 Replies)
Hi All,
I'm writing a nagios check that will see if our ldap servers are in sync...
I got the status data into a nested array, I would like to search key of each array and if "OK" is NOT present, echo other key=>values in the current array to a variable
so...eg...let take the single array... (1 Reply)
Hi Everyone,
#!/usr/bin/perl
use strict;
use warnings;
my @test=("a;b;qqq;c;d","a;b;ggg;c;d","a;b;qqq;c;d");
would like to split the @test array into two array:
@test1=(("a;b;qqq;c;d","a;b;qqq;c;d"); and @test2=("a;b;ggg;c;d");
means search for 3rd filed.
Thanks
find the... (0 Replies)
I have an array and two variables as below,
I need to check if $datevar is present in $filename.
If so, i need to replace $filename with the values in the array.
I need the output inside an ARRAY
How can this be done.
Any help will be appreciated. Thanks in advance. (2 Replies)
Trying to do some control flow parsing based on the index postion of an array member. Here is the pseudo code I am trying to write in (preferably in pure bash) where possible. I am thinking regex with do the trick, but need a little help.
pesudo code
if == ENDSINFIVEINTS ]]; then
do... (4 Replies)
hello,
i need a bit of help on how to do this effectively in bash without a lot of extra looping or massive switch/case
i have a long array of M elements and a short array of N elements, so M > N always. M is not a multiple of N.
for case 1, I want to stretch N to fit M
arrayHuge
H = (... (2 Replies)
Example of problem:
computerhand=(6H 2C JC QS 9D 3H 8H 4D)
topcard=6D
How do you search ${computerhand} for all elements containing either a "6" or a "D" then
save the output to a file?
This is a part of a Terminal game of Crazy 8's that I'm attempting to write in Bash.
Any... (2 Replies)
username=cogiz
#!/bin/bash
shuffle() #@ USAGE: shuffle
{ #@ TODO: add options for multiple or partial decks
Deck=$(
printf "%s\n" {2,3,4,5,6,7,8,9,T,J,Q,K,A}{H,S,D,C} |
awk '## Seed the random number generator
BEGIN { srand() }
## Put a random number in front... (4 Replies)
Discussion started by: cogiz
4 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)