[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Exec commande et exit status



> si je me plante pas le $? quand tu fais echo `cp toto` vaut 0 car c'est la
> commande echo qui est executé (et qui marche parfaitement bien car la sortie
> standard de cp toto est bien affichée)

Si je fais

aweb-pub:~# cp toto ; echo $?
cp: missing destination file
Try `cp --help' for more information.
1

aweb-pub:~# cp toto tata ; echo $?
0

C'est bon mais pas si je passe via exec. Cela doit être si évident que je ne
vois pas mon erreur.

Stef...


..........................................................
.  Linux - Debian - php4 - Apache - MySQL - Infogerance  .
.   email: info@actionweb.fr - http://www.actionweb.fr   .
.     Tel: (0)141 906 100    -    Fax: (0)141 906 101    .
..........................................................



Reply to: