Results 1 to 4 of 4
Hi All,
I'm just taking my first steps into the Linux world...by force. I've been asked to create an HTML interface for simply binary applications like traceroute on a Linux ...
- 01-08-2008 #1Just Joined!
- Join Date
- Jan 2008
- Posts
- 1
binary application w/ HTML interface
Hi All,
I'm just taking my first steps into the Linux world...by force. I've been asked to create an HTML interface for simply binary applications like traceroute on a Linux box. I've worked extensively in VB, ASP.Net, and SQL but am not sure which technology is most appropriate for Linux systems.
Is Python, Perl/PHP, or Java the best fit? I just need to know where to begin.
Thanks in advance for any guidance.
- 01-08-2008 #2
Java, Python and Perl/PHP are certainly well-supported on Linux. I haven't done a lot of web application development on Linux specifically, but I do write web applications in Java. I can tell you that you have a much better chance getting those technologies to work with Linux than you do with VB or anything .Net.
Registered Linux user #270181
TechieMoe's Tech Rants
- 01-09-2008 #3
There is no such thing as the best fit
All of the languages you've mentioned are great.. all of them have advantages and disadvantages.
You will not fail if you pick one or the other.
Personally, I started with Perl and had no problems to understand PHP later on.
About the binary application. If you print our:
followed by your HTML code. And put that binary into the apache's cgi-bin directory with executable flag on, you will be able to get your HTML output. You just have to google around for a solution, if you'd like to submit POST/GET requests to the binary.Code:printf("Content-type: text/html\n\n");
- 01-09-2008 #4
So let me get this straight. You want to basically create a form that takes parameters, invokes a program on the server, and returns its output?
This could certainly be done with any of the languages you name. Having said that, I would suggest Perl or PHP, and particularly PHP.
Perl is very easy to do CGI programming with. There is a module (conveniently named "CGI") that opens up all of the functionality that you need. The problem is that your code is going to be littered with print statements and such.
PHP, on the other hand, was rather designed to sit right into the HTML. As a result, when you want to just produce HTML, it is very easy to do, and when you want PHP, you just type "<?php", and you're in PHP mode.
I personally prefer doing this stuff with PHP, but if you had some sort of framework (Catalyst or Ruby on Rails), then I would highly suggest using Perl or Ruby respectively.
It's up to you and what you feel most comfortable in. I think that it would be most challenging in Java out of the options you name, but it's certainly doable in any of them.DISTRO=Arch
Registered Linux User #388732


Reply With Quote
