texexec in a shell script
I know someone out there has the answer to this. If I run texexec through a shell, even with the full path to texexec, I get an error, "/usr/local/teTeX/bin/powerpc-apple-darwin-current/texexec: line 1: sed: command not found `.pl' not found." Running Google with the error shows that it is quit common, but I could not find a good fix. I guess kpsewhich gets lost in the shell because the shell needs full paths the whole way through the command. Has anyone written a shell to get texexec --pdf ? Thanks Robert
Robert Ullrey wrote:
I know someone out there has the answer to this. If I run texexec through a shell, even with the full path to texexec, I get an error, "//usr/local/teTeX/bin/powerpc-apple-darwin-current/texexec: line 1: sed: command not found `.pl' not found."
you can use the call: texmfstart texexec ... alternative you can replace texexec in you bin path by: #!/bin/sh texmfstart texexec.pl $@ first of all, texmfstart only depends on ruby, and more important, it knows how to locate things in the texmftree (the tds structure occasionally changes and texmfstart can adapt to that) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen wrote:
Robert Ullrey wrote:
I know someone out there has the answer to this. If I run texexec through a shell, even with the full path to texexec, I get an error, "//usr/local/teTeX/bin/powerpc-apple-darwin-current/texexec: line 1: sed: command not found
Some alternative solutions are also possible: You could - Install the (fairly standard unix tool) 'sed', that is obviously missing from your darwin install - Use 'perl /usr/local/teTeX/texmf/scripts/context/perl/texexec.pl' (replace the path with whereever your context distribution lives) - perhaps you should use gwTeX instead of teTeX (?) Taco
Taco Hoekwater said this at Tue, 19 Apr 2005 09:55:20 +0200:
Some alternative solutions are also possible:
You could
- Install the (fairly standard unix tool) 'sed', that is obviously missing from your darwin install
if /usr/bin/sed is missing, a lot else will be missing, too. I would recommend going back to the install discs and making sure you have installed the `BSD Layer' (or something similar) in the custom install step.
- perhaps you should use gwTeX instead of teTeX (?)
Nah, it's gwTeX. Gerben just puts his distro into a directory called tetex. cheers, adam -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
participants (4)
-
Adam Lindsay
-
Hans Hagen
-
Robert Ullrey
-
Taco Hoekwater