Anders Host-Madsen <ahostmadsen <at> yahoo.com> writes:
> I have tried this method. I figured out how to write scripts and put the formats > into LyX, and how to debug LyX. But LyX just will not run my script. I > get the message > > 14:15:31.593: The process failed to start. Either the > invoked program is missing, or you may have > insufficient permissions to invoke the program. > 14:15:31.720: Successful export to format: > Exportsupport/Systemcall.cpp (276): Systemcall: 'LExport.sh > $$r "test.tex"' did not start! > support/Systemcall.cpp (277): error The process failed to start. > Either the invoked program is missing, > or you may have insufficient permissions to invoke the program. > > I have tried to put the scrip inside the LyX scripts directory, and outside. > I can run it > from terminal. But when LyX tries to run it, the above happens. Any > ideas from anyone? > It's all on a Mac. Is LExport.sh marked executable by all users, not just yourself. I don't know whether LyX runs the script with you as the user or with LyX as the user. Also, does the script specify a command interpreter with a hash-bang comment at the top? In other words, when you successfully run it outside LyX, do you do so with "./LExport.sh", or do you specify a command interpreter (e.g, "bash ./LExport.sh"? Paul
