Question

Example:

The user login to the webpage => Click on a button
This action starts the executable "CreatePrettyPicture"
The file "prettypicture.jpg" is created on the server
When the user reloads the page the pretty picture "PrettyPicture.jpg" is shown on the page.

If I could start the application with a parameter it would be even better.

The server is a using Debian and as web server I'm using Apache. Please let me know if you need more information about the server configuration.

The possibility of several users clicking on the button at the same time is not a part of the problem.

Was it helpful?

Solution

You would be better of using a server side script with your apache installation to start the executable. This is probably easier with PHP (which should be easy to install if it isnt already), here are the commands. As long as you dont actually use any input with the page it should be safe enough.

OTHER TIPS

You need to read up on CGI Scripts.

It's also possible that PHP is already available on your server, but I wouldn't recommend using it unless you're already familiar with it and know all of the security pitfalls, which from the question appears very unlikely.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top