-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Problem with exec() #76
Comments
exec/shell_exec is somehow supported, but it may be not tested on Linux and macOs. What environment and what shell command are you running? |
I use MacOS for development and linux for deployment. At first I was trying to use aws cli commands but those failed due to problems with running python scripts from exec(). Then I tried something more rudimentary like "ls" and that failed so it seems like a more general issue with the environment. |
quick question - how is this issue related to WordPress? |
Do you mean what I am trying to accomplish? |
oh so you are implementing your WordPress plugin? AFAIK yielding from try catch is easy to workaround: try
{
yield $x;
} -> try
{
$value = $x;
}
yield $value it just have to be done manually, compiler does not have this kind of analysis (yet). |
Ok thanks for the tip! I'll have to try that out. |
Thank you for releasing the new compiler with unix shell support. This works This fails as the "-l" flag is excluded for some reason This works This works |
thanks daniel! great tips, this should be easy to fix for us |
should be fixed in the latest update :) please let me know if it still fails |
I'm trying to run shell commands using exec/shell_exec but I get errors like:
/bin/ls: /bin/ls: cannot execute binary file
Some sort of environment configuration I am missing?
Thank you
The text was updated successfully, but these errors were encountered: