<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2876" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=750322918-28062007><FONT face=Arial 
color=#0000ff size=2>Before embarking on this, you might want to write a wrapper 
that runs your real script with a "time" command and then log the results.  
The reason for rewriting in C is to make it more efficient, but if what you are 
doing is not very bad, there is no reason for the heartache unless you need to 
learn C, or are into self-abuse.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=750322918-28062007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=750322918-28062007><FONT face=Arial 
color=#0000ff size=2>And you can probably modify the Hobbit RRD module 
(realizing that you will have to maintain it forever) to add your additional 
test parsing to what is already provided.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=750322918-28062007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=750322918-28062007><FONT face=Arial 
color=#0000ff size=2>You also might consider converting your shell script into a 
Perl script -- Perl is a good intermediate between shell and C, and is pretty 
fast for longer running tasks.  The only reason Perl doesn't win for all 
tasks is the need to compile the script before running it -- a slight 
performance hit for repetitive short tasks.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=750322918-28062007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=750322918-28062007><FONT face=Arial 
color=#0000ff size=2>GLH</FONT></SPAN></DIV><BR>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> Gary Baluha [mailto:gumby3203@gmail.com] 
  <BR><B>Sent:</B> Thursday, June 28, 2007 1:13 PM<BR><B>To:</B> 
  hobbit@hswn.dk<BR><B>Subject:</B> [hobbit] Server-side extension scripts: 
  shell vs. C programming<BR></FONT><BR></DIV>
  <DIV></DIV>I remember reading somewhere in the Hobbit documentation that when 
  an extension script starts to do a lot of things, it should be coded in a 
  compiled language such as C, instead of as a shell script.  I have a 
  custom script that takes a lot of data and converts it into NCV graphs, and I 
  believe it is at the point where I should consider rewriting it in C. 
  <BR><BR>Before I get to far into it, is the hobbitd_sample.c something that I 
  should look at for this?  I'm not sure if I'm reading the documentation 
  on it correctly, if it is a good example for an external script.  Has 
  anyone else had experience in needing to convert a shell script to C/C++/etc 
  for Hobbit?  I'm just trying to get a rough idea of how much effort this 
  will require. <BR></BLOCKQUOTE></BODY></HTML>