System() call doesn't work

I’m trying to use system() to execute a Linux command inside an application but it appears not to work. Has anyone been successful with this?

I remember it should not be a problem on unsandboxed app:

Thanks, yes it works OK on unsandboxed.