Am 17.09.2014 um 12:23 schrieb Helmut Hauser <[email protected]>:
> Hi everybody,
>
> I am trying to write a shell script to compile individual LyX files
> automatically. I was able to find on
>
> http://wiki.lyx.org/FAQ/ImportExport
>
> that one can use:
>
> lyx --export FORMAT myfile.lyx
>
> I tried that and I get there error that the command “lyx" can not be found
> -bash: lyx: command not found
>
> It seem it it is not in my binary path. The problem might be that I am
> working on a Mac (OS 10.9.4). However, I was not able to locate lyx in order
> to add the right path in front of the command.
> If found it int "Applications/_ifi_applications/LyX/Contents/MacOS/lyx”, but
> I am not able to access it even with the full path.
> When I copy it with the finder to the folder where I need it, I get a link
> (alias), however, it tells me that I don’t have permissions, although I do
> have reading and writing permission ( for the link and for the original
> command).
> Now I am stuck….
On Mac OS you have to type the full path. But the path you gave is weird. Are
you sure?
This is how it works for me (on 10.8.6):
$ /Applications/LyX.app/Contents/MacOS/lyx --help
Aufruf: lyx [ Befehlszeilenoptionen ] [ name.lyx ... ]
Befehlszeilenoptionen (Groß-/Kleinschreibung beachten):
-help Zusammenfassende Hilfshinweise
-userdir dir Setzt das Benutzerverzeichnis auf dir
-sysdir dir Setzt das Systemverzeichnis auf dir
...
-e [--export] fmt Exportiert in das Format fmt.
Stephan