Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
833 connectés 

  FORUM HardWare.fr
  Programmation
  Shell/Batch

  Lancer un bash shell [newbie]

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Lancer un bash shell [newbie]

n°1691888
nycius
Ich liebe dich !
Posté le 25-02-2008 à 13:41:32  profilanswer
 

Salut,
 
Je suis nouveau dans le scripting shell.
J'ai voulu créer un bash qui me nettoye mes bounce de la queue en faisant ca :
 

Code :
  1. #!/bin/sh
  2. /etc/init.d/qmail stop
  3. /var/qmail/bin/qmHandle -S"failure"
  4. /etc/init.d/qmail start


 
Seulement j'ai cette erreur au lancement :
 

Code :
  1. Calling system script to terminate qmail...
  2. Can't exec "/usr/local/bin/svc": Aucun fichier ou répertoire de ce type at
  3.         /var/qmail/bin/qmHandle line 192 (#1)
  4.     (W exec) A system(), exec(), or piped open call could not execute the
  5.     named program for the indicated reason.  Typical reasons include: the
  6.     permissions were wrong on the file, the file wasn't found in
  7.     $ENV{PATH}, the executable in question was compiled for another
  8.     architecture, or the #! line in a script points to an interpreter that
  9.     can't be run for similar reasons.  (Or maybe your system doesn't support
  10.     #! at all.)


 
QQun pourrais m'expliquer la raison ?

mood
Publicité
Posté le 25-02-2008 à 13:41:32  profilanswer
 

n°1691947
vttman2
Je suis Open ...
Posté le 25-02-2008 à 14:30:19  profilanswer
 

C'est pas une question de -rwxr-xr-x ?
Il a quoi comme attributs ton script ?


Message édité par vttman2 le 25-02-2008 à 14:30:49

---------------
il n'y a pas que le VTT dans la vie, il y a le Snowboard aussi ...
n°1691955
nycius
Ich liebe dich !
Posté le 25-02-2008 à 14:32:34  profilanswer
 

C'est réparé, ca venait de qmHandle :)


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Shell/Batch

  Lancer un bash shell [newbie]

 

Sujets relatifs
[VB/VBA/VBS] Excel vba et Windows 64 bit: problème de shell ?Passer une variable C en Shell avec un system()
Je n'arrive pas lancer Visual basicScripting bash
shellScript bash
Comment lancer GNUPLOT à partir d'un code en C++équivalent de trap(bash) en python ?
[Résolu] Unexpected end of file[c++]faire un grep dans un fichier (newbie style..)
Plus de sujets relatifs à : Lancer un bash shell [newbie]


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR