Jump to content

Probably shouldn't use 'shell_exec' I guess. But dunno


Recommended Posts

Hello,

My module thingy requires a background process to be running. I've been using shell_exec to kick the process off. I noticed that the verifying tool forbids the use of 'exec' but 'shell_exec' seems not to get picked up. Is this an oversight of the verifying tool rather than a function that is actually deemed ok to use in a module? I can imagine it being a problem for any users who are using a windows server, not that I'd expect there to be many of those. I guess it would be a workaround to simply say that the module wouldn't work on Windows, but I'm not sure if that would be allowed either.

Is there a recommended way of doing this in Prestashop or is it ok to use shell_exec?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...