Hi Jose,
All jobs executed by GRAM are executed from the Perl modules
$GLOBUS_LOCATION/perl/Globus/GRAM/JobManager/*.pm. The Perl modules
create shell scripts with a job command specified by a user submitting
the job. The scripts are later executed by the Perl modules. You can
modify the Perl modules to add extra lines in the shell scripts to
change environment variables (LD_LIBRARY_PATH, PATH etc) according to
your needs.
You can also use /etc/profile to modify a job environment because the
shell scripts are executed by so called login shell (#!/bin/sh -l). If I
remember correctly, an exception here are jobs controlled by the Fork
job manager ($GLOBUS_LOCATION/perl/Globus/GRAM/JobManager/fork.pm). To
use /etc/profile, the fork.pm requires a small modification.
Regards,
Lukasz
On 12/15/10 7:47 PM, Jose Luis Gordillo Ruiz wrote:
Hi,
anybody knows how to set up a GRAM service to provide a default
environment (LD_LIBRARY_PATH, PATH, etc) for the created process/jobs?
thank you in advance
Jose Luis Gordillo