Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] bug in environment handling?
- Date: 17 May 2007 10:09:00 -0500
- From: "Todd Tannenbaum" <tannenba@xxxxxxxxxxx>
- Subject: Re: [Condor-users] bug in environment handling?
or to be a little more specifc re below, the % substitution syntax is specific to the windows cmd.exe shell. Condor does not exec cmd.exe to start a program unless it is a .bat file.
Cheers
Todd
< Sent from a Palm Treo 680 >
-----Original Message-----
From: Dan Bradley <dan@xxxxxxxxxxxx>
Date: Thursday, May 17, 2007 9:57 am
Subject: Re: [Condor-users] bug in environment handling?
To: Condor-Users Mail List <condor-users@xxxxxxxxxxx>Reply-To: Condor-Users Mail List <condor-users@xxxxxxxxxxx>
>The behavior you describe is the expected behavior, though I agree that
>it would be nice for Condor to support the type of substitution that you
>are trying to do. The '%' character in an environment value has no
>special meaning to Condor.
>
>--Dan
>
>Grant Goodyear wrote:
>
>>Is there a bug tracking system for condor somewhere that users
>can use to submit bugs? I couldn't seem to find one.
>
>>I'm reposting the meat of a previous post, since I had buried it
>in the middle of an old thread. Thanks to Matt Hope for his input,
>along with his suggestion that this might be a bug in condor.
>
>>Here's the previous post about setting environment variables in
>windows:
>
>>
>I would have liked using
>
>> environment = "TMP=%_CONDOR_SCRATCH_DIR% TEMP=%_CONDOR_SCRATCH_DIR%"
>
>>in the submission file instead of a batch file, but I'm not seeing the
>environment set.
>
>>Here's my test case. Any idea what I'm doing wrong?
>
>>testenv.sub
>-----------
>
>>Executable = testenv.bat
>Universe = vanilla
>Output = testenv.out
>Log = testenv.log
>Error = testenv.err
>environment = "TEMP=%_CONDOR_SCRATCH_DIR% TMP=%_CONDOR_SCRATCH_DIR%"
>should_transfer_files = YES
>when_to_transfer_output = ON_EXIT
>
>>queue
>
>>testenv.bat
>-----------
>
>>echo "Should be set by submission file:"
>echo "TMP: ", %TMP%
>echo "TEMP: ", %TEMP%
>set TMP=%_CONDOR_SCRATCH_DIR%
>set TEMP=%_CONDOR_SCRATCH_DIR%
>echo "Set in batch file:"
>echo "TMP: ", %TMP%
>echo "TEMP: ", %TEMP%
>
>>testenv.out
>-----------
>
>>"Should be set by submission file:"
>"TMP: ", %_CONDOR_SCRATCH_DIR%
>"TEMP: ", %_CONDOR_SCRATCH_DIR%
>"Set in batch file:"
>"TMP: ", C:\condor\execute\dir_5652
>"TEMP: ", C:\condor\execute\dir_5652
>
>>
>
>_______________________________________________
>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 either
>https://lists.cs.wisc.edu/archive/condor-users/
>http://www.opencondor.org/spaces/viewmailarchive.action?key=CONDOR
>