On Mon, 24 Jan 2011 22:10:37 +0100 [log in to unmask] [log in to unmask] wrote: > Hola Arnau, Hi, > Sorry, you cannot do that, because the grid-env.sh script is handled > in a rather peculiar way that will break what you tried, as you saw. > > Since your grid-env.sh script is in /etc/profile.d anyway, you should > have a much easier solution: put those lines in an extra script! > > For example: > > /etc/profile.d/dcache-env.sh > > What do you think? It's ok for me, but, is it going to be sourced by all jobs when they start? or, do I have to add an extra line like . /etc/profile.d/dcache-env.sh somewhere? if yes, what is the appropiate file? Many thanks Maarten, Arnau