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 :
- #!/bin/sh
- /etc/init.d/qmail stop
- /var/qmail/bin/qmHandle -S"failure"
- /etc/init.d/qmail start
|
Seulement j'ai cette erreur au lancement :
Code :
- Calling system script to terminate qmail...
- Can't exec "/usr/local/bin/svc": Aucun fichier ou répertoire de ce type at
- /var/qmail/bin/qmHandle line 192 (#1)
- (W exec) A system(), exec(), or piped open call could not execute the
- named program for the indicated reason. Typical reasons include: the
- permissions were wrong on the file, the file wasn't found in
- $ENV{PATH}, the executable in question was compiled for another
- architecture, or the #! line in a script points to an interpreter that
- can't be run for similar reasons. (Or maybe your system doesn't support
- #! at all.)
|
QQun pourrais m'expliquer la raison ?