Projet

Général

Profil

Tâche #30857

Scénario #30699: Traitement express MEN (40-42)

2.8 : schedule non fonctionnel

Ajouté par Emmanuel GARETTE il y a plus de 3 ans. Mis à jour il y a plus de 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
15/10/2020
Echéance:
% réalisé:

100%

Restant à faire (heures):
0.0

Description

Etudier :

Return-path: <fromuser@ac-test.fr>
Received: from root by eolebase.ac-test.fr with local (Exim 4.93)
    (envelope-from <fromuser@ac-test.fr>)
    id 1kSpx7-0008bo-Oe
    for touser@ac-test.fr; Thu, 15 Oct 2020 01:13:01 +0200
From: root@eolebase.ac-test.fr (Cron Daemon)
To: root@eolebase.ac-test.fr
Subject: Cron <root@eolebase> python /usr/share/eole/schedule/schedule cron >> /var/log/schedule.log
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
Message-Id: <E1kSpx7-0008bo-Oe@eolebase.ac-test.fr>
Date: Thu, 15 Oct 2020 01:13:01 +0200

/bin/sh: python : commande introuvable

--1602717182-eximdsn-2028111251--

Révisions associées

Révision b7585418 (diff)
Ajouté par Joël Cuissinat il y a plus de 3 ans

cron-schedule : appel direct à "schedule" sans passer par l'interpréteur

Ref: #30857

Historique

#1 Mis à jour par Joël Cuissinat il y a plus de 3 ans

  • Tracker changé de Demande à Tâche
  • Statut changé de Nouveau à En cours
  • Assigné à mis à Joël Cuissinat
  • Tâche parente mis à #30699
tmpl/cron-schedule:%%creole_client.get('schedule.schedule.minute') %%creole_client.get('schedule.schedule.hour') * * * root python /usr/share/eole/schedule/schedule cron >> /var/log/schedule.log

#2 Mis à jour par Joël Cuissinat il y a plus de 3 ans

Comme :

root@scribe:~# head -n1 /usr/share/eole/schedule/schedule 
#!/usr/bin/python3

Et :

root@scribe:~# ls -l /usr/share/eole/schedule/schedule
-rwxr-xr-x 1 root root 6233 oct.   6 10:52 /usr/share/eole/schedule/schedule

Je propose d'exécuter directement le script !

#3 Mis à jour par Joël Cuissinat il y a plus de 3 ans

  • Statut changé de En cours à Résolu
  • % réalisé changé de 0 à 100

#4 Mis à jour par Daniel Dehennin il y a plus de 3 ans

  • Statut changé de Résolu à Fermé
  • Restant à faire (heures) mis à 0.0

C’est bon:

root@eolebase:~# cat /etc/cron.d/schedule 
13 1 * * * root /usr/share/eole/schedule/schedule cron >> /var/log/schedule.log

Formats disponibles : Atom PDF