ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So I have really no idea how to do this and my knowledge of web programming is fairly small unforunatly. I have an application that I would like to run over the web. When it finishes I would like the user to be able to download the output file which is created.
Also there's one more thing I would like it to do if possible. That is pop-up another window showing an image that the program creates. The image is made in a new window anyway on the program, an X11 window.
If there needs to be interaction with the application as it is running then a Java applet is probably the best approach.
If all the parameters can be provided before the application runs then the application can be written in any language and a web language like php can be used to start the application pass in the parameters, gather the output and return it to the user.
If the application will use a lot of resources when running then you will want to be very careful how you allow users to trigger it and how you actually link it into the web architecture.
I'll probably want both at the end of the day. But I'm getting started on the non-interactive one first. I don't know javascript, which leads me to a question, any good links to get started?
One more question for you, you said
Quote:
be very careful how you allow users to trigger it and how you actually link it into the web architecture.
If anyone can trigger the application, and the application is resource hungry, then it would be very easy for me (a nasty person if you got to know me) to lock up your system. I just write a script that calls you application thousands of times in a loop so that it will get to a point that your server is unable to do anything other than run the application.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.