Project

General

Profile

Tâche #30857

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

2.8 : schedule non fonctionnel

Added by Emmanuel GARETTE 12 months ago. Updated 11 months ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
10/15/2020
Due date:
% Done:

100%

Remaining (hours):
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--

Associated revisions

Revision b7585418 (diff)
Added by Joël Cuissinat 12 months ago

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

Ref: #30857

History

#1 Updated by Joël Cuissinat 12 months ago

  • Tracker changed from Demande to Tâche
  • Status changed from Nouveau to En cours
  • Assigned To set to Joël Cuissinat
  • Parent task set to #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 Updated by Joël Cuissinat 12 months ago

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 Updated by Joël Cuissinat 12 months ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100

#4 Updated by Daniel Dehennin 11 months ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 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

Also available in: Atom PDF