[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] Stop Condor cleaning the environment before executing a job



Unfortunately that wont work either Tim,

getenv copies the environment from the submission host. We have various different resources configured to test various things. I want to be able to preserve the environment of the execution machine so it is exactly as it would be if I were to manually log in and run the job.

Environment = ... is not really a valid option because software may be installed in different places on these machines, and having foreknowledge of these locations is practically impossible.

I'm not sure if what I require is possible, I'm beginning to look at pulling the required paths from the registry
________________________________________
From: condor-users-bounces@xxxxxxxxxxx [condor-users-bounces@xxxxxxxxxxx] On Behalf Of Tim St Clair [tstclair@xxxxxxxxxx]
Sent: 15 November 2011 14:25
To: Condor-Users Mail List
Subject: Re: [Condor-users] Stop Condor cleaning the environment before executing a job

# will copy your submit env
getenv=true

# will override any var you care about.
environment=

http://www.cs.wisc.edu/condor/manual/v7.7/condor_submit.html#76373

Cheers,
Tim

----- Original Message -----
> From: "Lukas Slebodnik" <slebodnik@xxxxxxxx>
> To: "Condor-Users Mail List" <condor-users@xxxxxxxxxxx>
> Sent: Tuesday, November 15, 2011 7:46:34 AM
> Subject: Re: [Condor-users] Stop Condor cleaning the environment before executing a job
>
> You can add environment variables in submit description file using
> directive
>
> Environment = LD_LIBRARY_PATH=/home/users/john/condor/myLib
>
> Details:
> http://www.cs.wisc.edu/condor/manual/v7.6/condor_submit.html#74916
>
> You can manualy insert all important environment variables to your
> submit
> description file or generate by script. You can also configure schedd
> daemon
> to append default Environment, but if you specify Environment in
> submit
> description file, then default (from local_config) will be ignored
>
> For example:
> Environment =
> LD_LIBRARY_PATH=/home/users/john/condor/myLib;TEMP=/temp
> SUBMIT_EXPRS = $(SUBMIT_EXPRS) Environment
>
> Details:
> http://www.cs.wisc.edu/condor/manual/v7.6/3_3Configuration.html#19384
>
> I did not test this method, but we are using SUBMIT_EXPRS to append
> another
> expresions to job ClassAd.
>
> Lukas
>
> On Tue, Nov 15, 2011 at 01:13:04PM +0000, Thomas Luff wrote:
> > Thanks Lukas
> >
> > Unfortunately that seems to import the environment from the user
> > who started the daemons (NetworkService?) on Windows. I'm trying
> > to load to environment of the job owner.
> >
> > Thanks
> >
> > -- IMPORTANT NOTICE: The contents of this email and any attachments
> > are confidential and may also be privileged. If you are not the
> > intended recipient, please notify the sender immediately and do
> > not disclose the contents to any other person, use it for any
> > purpose, or store or copy the information in any medium.  Thank
> > you.
> >
> > _______________________________________________
> > Condor-users mailing list
> > To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx
> > with a
> > subject: Unsubscribe
> > You can also unsubscribe by visiting
> > https://lists.cs.wisc.edu/mailman/listinfo/condor-users
> >
> > The archives can be found at:
> > https://lists.cs.wisc.edu/archive/condor-users/
> >
> _______________________________________________
> Condor-users mailing list
> To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx
> with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/condor-users
>
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/condor-users/
>
_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/condor-users/

-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.