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

Re: [Condor-users] Condor $(OpSys) and $(Arch) parameter



Hey Klaus:

You could always define something like:

OpSysPlaform = substr($(OpSys), 0,5)
OpSysVersion = substr($(OpSys), 5,2)

Forgive me if my class ad syntax is off, I'm a little rusty.

Regards,
-B

On Fri, August 14, 2009 8:39 am, kschwarz@xxxxxxxxxxxxxx wrote:
> Hi all,
>
> Is there any parameter that is similar to the $(OpSys) but returns a
> generic name for the operational system instead of the different versions
> of Windows platforms (for instance!)? The same is valid for the $(Arch)
> parameter.
> What I want to do is to use this parameter (let say $(OpSysGeneric)) to be
> referenced in the requirements of a job or to configure Platform-Specific
> Configuration Files. See examples below.
>
> Requirements = (OpSysGeneric == "WINNT")
>
> instead of
>
> Requirements = (OpSys == "WINNT51" || OpSys == "WINNT52" || OpSys ==
> "WINNT60" || OpSys == "WINNT61")               ## and so on!
>
> and
>
> condor_config.SUN.SOLARIS
> condor_config.INTEL.LINUX
> condor_config.INTEL.WINNT
>
> LOCAL_CONFIG_FILE = $(ETC)/condor_config.$(ARCHGENERIC).$(OPSYSGENERIC), \
>                                                 $(ETC)/$(HOSTNAME).local
>
> instead of
>
> condor_config.SUN5x.SOLARIS25
> condor_config.SUN4x.SOLARIS25
> condor_config.SUN4x.SOLARIS26
> condor_config.INTEL.LINUX
> condor_config.INTEL.WINNT51
> condor_config.INTEL.WINNT52
> condor_config.INTEL.WINNT60
> condor_config.INTEL.WINNT61
>
> LOCAL_CONFIG_FILE = $(ETC)/condor_config.$(ARCH).$(OPSYS), \
>                     $(ETC)/$(HOSTNAME).local
>
> where the WINNTnn are really copies of WINNT51 !
>
> It will be helpful to simplify its usage. Any suggestions? If not
> available yet, could it be included in a future Condor version?
>
> Thanks, Klaus
> This message is intended solely for the use of its addressee and may
> contain privileged or confidential information. All information contained
> herein shall be treated as confidential and shall not be disclosed to any
> third party without Embraer?s prior written approval. If you are not the
> addressee you should not distribute, copy or file this message. In this
> case, please notify the sender and destroy its contents immediately.
> Esta mensagem é para uso exclusivo de seu destinatário e pode conter
> informações privilegiadas e confidenciais. Todas as informações aqui
> contidas devem ser tratadas como confidenciais e não devem ser divulgadas
> a terceiros sem o prévio consentimento por escrito da Embraer. Se você não
> é o destinatário não deve distribuir, copiar ou arquivar a mensagem. Neste
> caso, por favor, notifique o remetente da mesma e destrua imediatamente a
> mensagem._______________________________________________
> 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/
>