<br><div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div>
<div dir="ltr" align="left"><span><font face="Arial"><font color="#0000ff" size="2">Are you familiar with C programming at all?  Your 
question "...is the hobbitd_sample.c something that I should look at for this?" 
almost sounds like you may not be.  You could be for a long haul if 
your intent is to learn a programming language while converting your existing 
Hobbit shell script into something more efficient.  It's not going to be a 
simple cut-paste-compile scenerio, that's for sure.  Pardon me if I've 
interpreted you posting incorrectly.</font></font></span></div></div></blockquote><div><br>I was asking that to determine if is an appropriate model specifically for an extension script.  But yes, I am familiar with C programming.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">
Personally, I use PERL for my Hobbit server scripts, except 
the ones that are the simplest-of-the-simple, and for those I do use just plain 
inefficent shell.  I know C as well, but find PERL to be amost as efficient 
for what I do, and a heckuva lot quicker to program in.</font></span></div></div></blockquote><div><br>I am considering C mostly because I'm starting to out-grow the capabilities of simple shell programming, rather than purely efficiency reasons.  Perl would probably also work.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div dir="ltr" align="left" lang="en-us"><hr>
<font face="Tahoma" size="2"><span class="q"><b>From:</b> Gary Baluha [mailto:<a href="mailto:gumby3203@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gumby3203@gmail.com</a>] 
<br></span><b>Sent:</b> Thursday, June 28, 2007 12:13 PM<span class="q"><br><b>To:</b> 
<a href="mailto:hobbit@hswn.dk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">hobbit@hswn.dk</a><br><b>Subject:</b> [hobbit] Server-side extension scripts: shell 
vs. C programming<br></span></font><br></div>
<span class="q"><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></span></div>
</blockquote></div><br>