On Dec 5, 2007, at 7:22 AM, trucmuch_59 wrote:
> Hmm I see. Thanks for the input.
> The problem I have is that I need to run some script on linux and give
> the output to a web page, and I have no clue how to do that, I
> colleague suggest perl, that's why.
When you run anything as a CGI (i.e. from the web server's cgi-bin
directory), the stdout is sent to the browser on the other end. All
you need to do is send (i.e. printf, echo, etc) the http header on
stdout before you to send html (or other stuff). You don't need perl
for this.
If you get a POST request from the browser, then the contents of the
POST are on your cgi script's stdin.
All this is known as CGI. You can do it in any language you like
because its all based on stdin and stdout - there's nothing to link
to, etc.
Or you can get very fancy with frameworks, libraries and whatnot.
-Ilya
>
> I even try to find the cross tool, but the asource is not on the CD
> that come with the dev kit (and it should be because it' indicate on
> the readme)
>
>
> --- In "Gonzalo A. de la Vega"
> <> wrote:
>>
>> On Dec 4, 2007 8:02 PM, Joe Bouchard <> wrote:
>>>
>>> On Tue, Dec 04, 2007 at 12:46:37PM -0000, trucmuch_59 wrote:
>>>>
>>>> anyway, any help on the second question about the install of a
> program
>>>> on the onboard flash ? (like perl for now)
>>>
>>> Are you talking about the 8mb flash built onto the TS-7200? I
> think perl is
>>> too
>>> big for that.
>>
>> Yeah... you need to check if PERL will run with the available RAM, or
>> how to build it so it can do so (you may be able to switch off
>> features with the configure script).
>> About how to build it, I have done so with wermit this way:
>> 1) Mount the Debian distro (USB Flash o NFS, you choose).
>> 2) Untar the sources (again Flash or NFS, you just need enough space
> to build)
>> 3) Run ./configure from the SBC so it detects everything properly. I
>> used the --prefix option so when running "make install" the bianries
>> reside on some clean known directory tree.
>> 4) Run "make install" and move the directory tree to the SBC.
>> 5) The ugly part: run the program and see wich libraries are missing.
>> 6) Get the missing libraries from the debian direcotories, copy them
>> to the SBC and repeat from 5) until the program runs.
>> I never got to repeat from 5)
>> Note: dependig on what you are bulding you may get some kind on
>> package building option, like "make package" or "make tar". It's
>> also,
>> usually, possible to find the library dependences in the building
>> docs.
>>
>> Gonzalo
>>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|