Niclas,
Ok, ok I can't help it.
>
> From: Niclas Hedhman <[EMAIL PROTECTED]>
> On Wednesday 17 December 2003 11:51, Alex Karasulu wrote:
> > > private static String getUnixUserShell()
> > > {
> > > return "/bin/sh";
> > > }
> > Yes Niclas it will always work but if the user added MERLIN_HOME
> > to their .bashrc in their home directory then the Env variable is
> > never picked up. That's why you need the user's default shell.
>
> ?? If the user is logged in, it has invoked the default shell already, and
> read the resource file. No?
Yep.
> Then the environment is set (unless you are talking about editing the .bashrc
> after login, and not issue a new login.)
> On Solaris,
> bash-2.03$ /bin/sh -c "echo $NICLAS_TEST"
> something
I tried this but with forking a process in Java you
really cannot get the macro expansion to work. The
shell does not seem to do it. Give it a try run this
as a process through java and you'll see that it will
not work.
Alex
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]