I need to use an application which requires starting its GUI to run. I currently manage this application from a bash script that uses xdotool to automate some process.
The thing is that I want to move all this functionality to a web app but I have no clue on how to make this work. I understand the workflow would be like this:
1- User asks for service. 2- Server receives request and launches bash script. 3- Bash should now open the GUI, and run automated tasks. 4- Results should be returned to client (an output file).
My question is regarding pint 3. Is this possible at all?. I understand that the web server is running under Apache (or other user/group) that does not usually have GUI rights (I guess). But, even if I give privileges to this user (or another one upon configuration from my part), how can I start the X program taking into account that no X session does exist for the user on the server side?.
Just in case this makes any difference, I am now using Spring framework but considering to migrate to RoR.
Hope my question is understood... sorry for my poor English.
Thanks in advance,
Jose
Aucun commentaire:
Enregistrer un commentaire