D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Simple Script Problem

 

Simon Waters wrote:

> I'd be tempted to add;
> 
> export
> PATH=/usr/java/j2sdk1.4.2_10/jre/bin:$PATH:/home/peter/jmri/1.7.5/JMRI

I'd be tempted to set JAVA_HOME and set the PATH element relative to
$JAVA_HOME. 

> Assuming the utilities have been written such that it doesn't matter
> what directory you start them from. It is fairly easy to write scripts
> that way, or wrap existing scripts.

I was going to stay the same. It seems rather odd to have a
requirement for it to be run in a particular directory. It's even
odder to expect runnig a script to change your current working
directory.

Steve

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html