Paul A. Rubin <rubin <at> msu.edu> writes:

> 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.

It should be. Here is ls -l

-rwxrwxrwx@ 1 madsen  admin     20 Apr 12 14:11 LExport.sh

> 
> 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"?

Yes. Here is the script (at the moment I'm just trying to make the script run,
so it doesn't do anything yet):

#!/bin/bash
cp $1 $2

Perhaps it's some security issue on Mac that prevents it from running?

Anyway, now that I know there is a message pane, I figured out exactly
where it goes wrong with the command-sequence. The issue is with copying
figures. Sometimes they don't copy, and pdflatex fails. If I have a
long LyX document, but without figures, the command-sequence seems
to always work, producing a latex and pdf file.

Reply via email to