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

Re: [HTCondor-users] Running Pyhton 3 jobs on different os

A simple solution is to have a submit file entry with:
executable              = sh_$$(OpSys).bat
and then two batch files sh_LINUX.bat and sh_WINDOWS.bat (and maybe sh_OSX.bat) with the actual python (or shell) commands...
When the job is downloaded to a execute node, the variable OpSys will be expanded and the resulting file executed.
Gesendet: Montag, 15. Februar 2021 um 21:55 Uhr
Von: "Werner Koppelstätter" <Werner.Koppelstaetter@xxxxxx>
An: "htcondor-users@xxxxxxxxxxx" <htcondor-users@xxxxxxxxxxx>
Betreff: [HTCondor-users] Running Pyhton 3 jobs on different os
Hi all,
We use HTCondor with python binding and has Windows and Linux (Ubuntu) workstation in our cluster.
Now we want run Python 3 jobs. The problem is that the command for Python 3 on windows systems is "python" and for Linux system "python3".
Is there a possibility to define commands depending of the OS? For example through an _expression_ which is evaluated or a script before the job starts?
Thank you.
_______________________________________________ HTCondor-users mailing list To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a subject: Unsubscribe You can also unsubscribe by visiting https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users The archives can be found at: https://lists.cs.wisc.edu/archive/htcondor-users/