[texhax] Thomas Rendleman - Latex

Axel Freyn axel-freyn at gmx.de
Sat Oct 16 14:06:39 CEST 2010


Hi Thomas,
On Thu, Oct 14, 2010 at 08:40:43PM -0400, tr at gygaxi.com.org wrote:
> I love latex.
> I normally can figure out just about anything but this situation I  
> experiencing a problem in finding resources.
>
> My situation is I am on a client-side computer and ssh into the root of a 
> server. This server has latex on it. Each time I want to use latex I have 
> to add the $PATH variable. I can't seem to find any documentation. The 
> server is Centos/Apache and it would mean a great deal to make the $PATH 
> variable into a permanent structure so I can run it using cron.
>
What about not directly calling "latex", but using the complete path --
like "/opt/texliv/bin/latex" (or where your latex lives...) Would that
work?
If  not:
When using cron, you can redefine alle environment-Variables --
normally, it is sufficient to add a line like
"PATH=$PATH:/opt/texliv/bin/" in your crontab (But I don't use CentOS
myself).

A more general way:
If you have a root-Account on the Server: There should be a file
/etc/profile, which is executed at every login by most of the
user-shells. There you can also add/change the definition of PATH
Without a root-account: you can create a file ".profile" in your
home-directory (and in the home-directory of the user which runs "latex"
in the cron-job). There also you can redefine PATH permanently...

HTH,

Axel



More information about the texhax mailing list