Hi,
I have a bash script i wrote to do a few things (copy some files, sed some text files, and execute a few apps (ffmpeg, cinelerra).
I also have a php page that runs this bash script through exec();
If i run via the shell (su'd as apache) as: php myphppage.php it executes correctly, copying the files, sed replacements, executes ffmpeg and cinelerra as expected.
When i hit myphppage.php via a browser, it executes, kicks off the .sh script, does the copies, runs ffmpeg, but when it runs cinelerra, it goes nuts, basically resulting in not running correctly, and creating a bunch (10ish) files in the working directory with names like ?, ?a`, p!2, etc.
What i don't understand is what is different from being on ssh as user apache and running php mypage.php vs hitting mypage.php with a browser (since apache runs as user apache).
I'll be happy to provide whatever additional information or files that may be helpful in solving this.
Thanks
-jim