erreur crontab red hat 7.3

erreur crontab red hat 7.3 - Linux et OS Alternatifs

Marsh Posté le 22-04-2004 à 15:07:59    

j'ai cette ligne ci dans mon crontab
1-59 * * * * /appli/if2/comp/sh/getInfos.sh
(un script a executer toutes les minutes)
le demon crond tourne,  
j'ai bien les droits d'execution sur le fichier et l'arborescense est bonne (copier-coller, le script s'execute)
Pourtant, toutes les minutes j'ai un mail qui me dit
 
From if2  Thu Apr 22 14:23:00 2004
Date: Thu, 22 Apr 2004 14:23:00 GMT
From: root@linux19 (Cron Daemon)
To: if2@linux19
Subject: Cron <if2@linux19> /appli/if2/comp/sh/getInfos.sh
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/adm/if2>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=if2>
 
: No such file or directory/getInfos.sh
 
 
c koi le pbl ??? :(


Message édité par aurel le 22-04-2004 à 15:14:05
Reply

Marsh Posté le 22-04-2004 à 15:07:59   

Reply

Marsh Posté le 22-04-2004 à 16:15:56    

??

Reply

Marsh Posté le 22-04-2004 à 17:22:23    

et ba y'a pas de pro crontab ici ? :D

Reply

Marsh Posté le 23-04-2004 à 14:25:27    

vous me décevez énormément :(

Reply

Marsh Posté le 23-04-2004 à 14:41:05    

verifies les droits forcement >=500 sur le script.
verifies le chemin complet et le nom du script.
 
tu utilises le crontab de root ? ou le crontab d'un utilisateur ?
 
PS : il faut que tous les chemins soient autorisé si c"est le crontab utilisateur...
 
exemple si il peut pas lire /toto/titi et que le script à des droits OK mais se trouve dans  /toto/titi/tutu/tata/script il ne serra pas trouvé...
 


Message édité par francoisp le 23-04-2004 à 14:42:33

---------------
If everything else failed then read the instructions
Reply

Marsh Posté le 23-04-2004 à 14:44:31    

montres ton repertoire avec les droits du script
montres ton crontab  
tout ça en copier coller au cas ou...


---------------
If everything else failed then read the instructions
Reply

Marsh Posté le 23-04-2004 à 15:55:20    

-droits aux scripts : 777
-arbo et nom  : ok (copie-colle de la ligne crontab ds le shell =>lancement du script
-crontab d'un utilisateur
-droits aux rep ok (le rep sh appartien a l'user de la crontab)
 
crontab :
#Lancement toutes les minutes pour connaitre le nombre de process java
1-59 * * * * /appli/if2/comp/sh/getInfos.sh
#tous les 15' pour relancer le dispatcher si nbprocess>100
#*/15 * * * * /appli/if2/comp/sh/checkDispatcher.sh
#4 fois par jour pour relancer dispatcher avec save des logs
#30 4 * * * /appli/if2/comp/sh/startDispatcher.sh
#00 10 * * * /appli/if2/comp/sh/startDispatcher.sh
#00 15 * * * /appli/if2/comp/sh/startDispatcher.sh
#00 19 * * * /appli/if2/comp/sh/startDispatcher.sh
 
ll du rep sh
-rwxrwxrwx    1 if2      if2           253 avr 23 15:01 checkDispatcher.sh
-rwxrwxrwx    1 if2      if2           214 avr 23 14:37 countThread.sh
-rwxrwxrwx    1 if2      if2           260 avr 23 16:40 getInfos.sh
-rwxrwxrwx    1 if2      if2           902 avr 23 14:42 getMoreInfos.sh
-rwxrwxr-x    1 if2      if2           691 avr 23 14:43 prologue.sh
-rwxrwxrwx    1 if2      if2           113 avr 23 14:44 schedule.sh
-rwxrwxrwx    1 if2      if2           312 avr 23 14:49 startDispatcherComponent.sh
-rwxrwxrwx    1 if2      if2           512 avr 23 16:38 startDispatcher.sh
-rwxr-xr-x    1 if2      if2           679 avr 23 14:50 startMonitoredDispatcher.sh
-rwxrwxrwx    1 if2      if2           206 avr 23 16:39 stopDispatcher.sh
 
 
Mici !

Reply

Marsh Posté le 23-04-2004 à 17:09:44    

ou à priori c'etait donc bien tout bon...
 
donc là je vois pas ce que tu as bien pu oublier de faire ou mal faire...
 
PS: pour tes startDispatcher tu peux faire
#00 10,15,19 * * * /appli/if2/comp/sh/startDispatcher.sh  
 
ca fait qu'une ligne à decommenter pour les reactiver...
 
 


---------------
If everything else failed then read the instructions
Reply

Marsh Posté le 29-04-2004 à 13:22:09    

personne d'autres? :(

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed