I am using oF to create a FontForge script file. I use ofstream to create somefile.pe then system(“chmod +x /path/to/somefile.pe”) and finally system("/path/to/somefile.pe parameter") to execute it.
The somefile.pe file itself is created properly but it is not being executed. If I go to the terminal console and run /path/to/somefile.pe parameter all works well.
What can be going on here? I have tried a million different things to no avail.
Any help will be appreciated!
Some insight on FontForge script files in http://fontforge.sourceforge.net/scripting-alpha.html