[Dxspider-support] CGI
Bela Markus
ha5di at freemail.hu
Mon May 22 23:17:49 BST 2006
Hi All,
just for demonstration I attached a simple CGI program written in
PYTHON. This will execute an "SH/DX" command with a predefined argument
and print the result on the WEB page.
Program lacks user input parameters and formatting but do the job.
Regards... Béla, HA5DI
P.S.: BTW, if you are looking for a language which easy to learn, has a
nice clear syntax not like the nasty PERL (sorry Dirk), available free
on both LINUX and WINDOWS, I kindly advice to learn PYTHON. You will
love it.
Regards... Béla, HA5DI
Dirk Koopman írta:
> On Tue, 2006-05-16 at 19:54 +0200, Ruben Navarro Huedo wrote:
>
>> Hello friends:
>> We are trying to setup a CGI to extract last 25 DX from our Spider.
>> We have done it with expect. Something like this:
>>
>
>
>> #!/usr/bin/expect
>>
>> puts "Content-type: text/plain\n"
>>
>> log_user 0
>> spawn telnet localhost 8000
>>
>
> <snip>
>
> Could I suggest that, instead of using expect, you all have a look
> at /spider/perl/showdx. It is not a CGI program, but could easily be
> modified (by someone else, preferably) to do what you require using
> CPI.pm.
>
> This has the advantage that it looks at the files and does not connect
> to the node at all.
>
> Dirk
>
>
>
> _______________________________________________
> Dxspider-support mailing list
> Dxspider-support at dxcluster.org
> http://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
>
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: shdx
Url: http://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20060522/874a9587/shdx.diff
More information about the Dxspider-support
mailing list