Jump to content

Shell_exec() for emiscripten?


Recommended Posts

I am using Emiscripten and other compiler tools to create a front and backend for web assembly to make it easier to use. I need things like exec() and shell_exec() to use Emiscripten I believe. I am I mistaken, or is my endeavor doomed? 

Link to comment
Share on other sites

We don't allow exec and shell_exec for security reasons. However, if you have only one or two commands to run, you could use the cron jobs to run that. Please do note that there's a limit of 2 cron jobs per day. 

If your application requires it for continuous use then I am afraid it wouldn't work.

  • Thanks 1
Link to comment
Share on other sites

Build the cron script so it outputs to a browser and can be run by simply hitting the URL of the script. This is a very common configuration that most major PHP programs support. PHP code can be written to be platform agnostic for the most part.

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...