I am working on an Online complier project. I am stuck in between, so want help from you guys. Does anyone have an idea on how can I open a linux terminal through CGI scripts or PHP scripts on server side.
Meaning when a user presses compile button at client side, the request should go to server, which runs a script. that script should now open the terminal and run gcc filename.c command.
So how can I accomplish this task ?
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
1 reply Latest Post - 2008-06-18T19:08:36Z by SystemAdmin
Pinned topic Require Some Guidance regarding Online Complier project
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2008-06-18T19:08:36Z at 2008-06-18T19:08:36Z by SystemAdmin
SystemAdmin 110000D4XK262 PostsACCEPTED ANSWER
Re: Require Some Guidance regarding Online Complier project2008-06-18T19:08:36Z in response to SystemAdminYou are in the wrong forum. Probably you will be better of at http://www.linuxquestions.org/
Having said that, the best approach for what you want to do is execute the command using any of this functions: