[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Server-side extension scripts: shell vs. C programming
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Server-side extension scripts: shell vs. C programming
- From: "Gary Baluha" <gumby3203 (at) gmail.com>
- Date: Thu, 28 Jun 2007 14:55:33 -0400
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=LSGzqVLO5m4itI8PK67K9YFNkjI25EvOdfWd4gj9IYkeRXioYBMo+gsggC8p5DLeaWlvukIja/5kIrnzUlbLe56uKOufJe+K+YBjklwWzxHq/1fnVI5hclu6+uL++FxsbYBCJezDsWLFOodAv0/NTRlv+sPyY8wcF82+bzZ3xgg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=pCJPWvubRc/LBaPj9+rrVVIGqDJjSGChxVRYUgOJIf7labaVcZaG+sksSuWbOHwmAYVWwYB1anWjSSFAFOzxHWX4WZv+9JI4W7nRzkaPZOpXa2W9B7+ZQSOPHNWrj7+9KOhnw8maEM7ZkVcPbTt/eb9D2VMJrJdb38a2+IKI/Wc=
- References: <29f517690706281112o4f7f94e5pc348a2a3196ebca1 (at) mail.gmail.com> <9836EA7D7FDAE34099AED87A2D9C3A8D378B06 (at) 306181ANEX2.global.avaya.com>
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.
I was asking that to determine if is an appropriate model specifically for
an extension script. But yes, I am familiar with C programming.
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.
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.
------------------------------
*From:* Gary Baluha [mailto:gumby3203 (at) gmail.com]
*Sent:* Thursday, June 28, 2007 12:13 PM
*To:* hobbit (at) hswn.dk
*Subject:* [hobbit] Server-side extension scripts: shell vs. C programming
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.
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.