I want to start a process using IProcess->Spawn(). But whatever I try I always get a return value of 0 and the same error message in the log:
IProcess::Spawn filename:/apps/appname/filename argc:0
IProcess::Spawn failed, status:13 (13 : Permission denied)
I tried
- /apps/appname/filename
- /mnt/sda2/apps/appname/filename
- /home/appname/filename
- /mnt/sda2/home/appname/filename
- filename
- ./filename
- /bin/ls
but no luck. I even get this message for files that don't exist. All files and the directories on the way to them have at least rx set for owner, group, and others (for the test only, in production I'll restict permissions to the minimum). Owner and group are set to the app's owner and group.
What could the problem be here?
And a second question: The documentation for the argv parameter says "Note that the first argument is the process filename itself again." What does it mean for me? Should I add it as first parameter, or is this only a reminder that it is the usual behavior of the system when it provides the argv to the program?