Xymon Mailing List Archive search

test server-side script from hobbit server

3 messages in this thread

list Joshua Krause · Fri, 8 Feb 2008 10:31:37 -0500 ·
I am trying to test a server side script from the hobbit server and want it
to use the Hobbit Environment variables.  I know how to do it on the
clientside just not on the serverside.

 
Thanks

Josh
list Buchan Milne · Fri, 8 Feb 2008 18:18:16 +0200 ·
quoted from Joshua Krause
On Friday 08 February 2008 17:31:37 Joshua Krause wrote:
I am trying to test a server side script from the hobbit server and want it
to use the Hobbit Environment variables.  I know how to do it on the
clientside just not on the serverside.
Same method should work, I usually do:

# su - hobbit -s /bin/bash
$ ./client/bin/bbcmd bash

Now run your script.

(maybe change client to server, but I don't think the environment is any 
different)

Regards,
Buchan
list Joshua Krause · Fri, 8 Feb 2008 14:57:45 -0500 ·
That worked.  I was able to verify the script is running.  Have another question??  I have come up with a script that parses a bootpd.log, greps for certain requests and then pipes them to a file.  I then take that file and parse it out and put it back together in the form that I need it in.  The dilemma that I am at is that if the script finds a couple of instances at one time I am trying to get it to page out each on separate pages instead of sending them all in one page.  Is there a way to do this?

Thanks,

Josh
quoted from Buchan Milne

-----Original Message-----
From: Buchan Milne [mailto:user-9b139aff4dec@xymon.invalid] 
Sent: Friday, February 08, 2008 11:18 AM
To: user-ae9b8668bcde@xymon.invalid
Cc: Joshua Krause
Subject: Re: [hobbit] test server-side script from hobbit server

On Friday 08 February 2008 17:31:37 Joshua Krause wrote:
I am trying to test a server side script from the hobbit server and want it
to use the Hobbit Environment variables.  I know how to do it on the
clientside just not on the serverside.
Same method should work, I usually do:

# su - hobbit -s /bin/bash
$ ./client/bin/bbcmd bash

Now run your script.

(maybe change client to server, but I don't think the environment is any 
different)

Regards,
Buchan