Changes between Version 132 and Version 133 of FermeLocale


Ignore:
Timestamp:
16/02/2024 13:54:19 (3 months ago)
Author:
lambert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FermeLocale

    v132 v133  
    148148
    149149
    150 \\
    151 \\
    152 
    153 
    154150== Utilisation du batch HT-Condor sur la ferme locale ==
    155151
     
    178174D'autres univers existent et pourront être proposés au besoin.
    179175
    180 === Exemple de fichier de soumission ===
     176=== Exemple de job à soumettre ===
    181177
    182178==== Python ====
     179
     180===== Fichier de soumission =====
    183181
    184182{{{
     
    186184  # Définition de l'univers
    187185  universe = vanilla
     186
    188187  # Chemin vers l'exécutable
    189188  executable = ./test_python.py
     
    199198 
    200199  queue
     200}}}
     201
     202===== Fichier exécutable ===== {{{
     203#!/usr/bin/env python3
     204
     205import platform
     206from datetime import datetime
     207
     208def afficher_informations_systeme():
     209    # Obtenir le nom de la machine
     210    nom_machine = platform.node()
     211
     212    # Obtenir la date et l'heure actuelles
     213    date_heure_actuelles = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
     214
     215    # Afficher les informations
     216    print(f"Nom de la machine: {nom_machine}")
     217    print(f"Date et heure actuelles: {date_heure_actuelles}")
     218
     219# Appeler la fonction pour afficher les informations
     220afficher_informations_systeme()
     221
    201222}}}
    202223