@ssolie
Quote:
So I take it you tried "system("Execute myscript");" and it didn't work? I find that very surprising.
Gimme some credit
LateX uses kpathsea library (part of LaTeX) that searches files and can generates (compiles) the missing files "on-the-fly".
Usually these are fonts, there's no sence to store bitmaps of all the fonts for all resolutions/modes on the disk, so it has their "sources" (in vector format afair) and compiles the bitmaps for the requested reoslution/mode/etc when they are requested for the first time and then caches them instead of directly using them (was sensible when system weren't that fast).
So there's a generic function that calls the system(), and I don't want to change the sources much, so I'm trying to make it call the script directly using the "s" bit as per Joerg's post.
Meanwhile I need that "sh" instance to have all the latex-related env and PATH sruff to be intact.
So I tried to create a directory included in the Amiga path that has the scripts with the same names as ones called by system() that call the appropriate sh scritps or whatever using:
/*rexx*/
parse arg args
parse source junk junk me junk
me=translate(me, " ", "/:")
me=word(me, words(me))
'sh -c ". /tetex/setup; teTeX:bin/powerpc-unknown-amigaos/'me args' " '
Meanwhile it refuses to do what I want it to
Jack