Normalement , un programme , quand il quitte anormalement fait un exit(numero) pour savoir en bash si le programme , c'est bien passé , tu fait echo $? , il renvoi le numero , si c'est 0 , c'est OK sinon erreur
Crebassa Gilles -----Message d'origine----- De : Barran, Richard [mailto:Richard.Barran@;littlewoods.co.uk] Envoyé : vendredi 15 novembre 2002 13:49 À : '[EMAIL PROTECTED]' Objet : [debutant] stderr dans un script bash Bonjour, J'ai un script bash qui execute toute une serie de commandes, je desire verifier que chaque commande a bien marchee, donc je voudrais verifier stderr. J'ai lu plusieurs guides sur le bash, ils parlent toujours de rediriger stderr vers un fichier. Est-il possible d'employer une variable a la place? J'ai essaye: macommande -monparametre 2> $MES_ERREURS Resultat: ca essaye de rediriger stderr vers un fichier dont le nom est le contenu de la variable $MES_ERREURS. Merci d'avance, Richard (ci-dessous une signature inutile) *********************************************************************** This e-mail and its attachments are intended for the above named recipient(s) only and are confidential and may be privileged. If they have come to you in error you must take no action based on them, nor must you copy or disclose them or any part of their contents to any person or organisation; please notify the sender immediately and delete this e-mail and its attachments from your computer system. Please note that Internet communications are not necessarily secure and may be changed, intercepted or corrupted. We advise that you understand and observe this lack of security when e-mailing us and we will not accept any liability for any such changes, interceptions or corruptions. Although we have taken steps to ensure that this e-mail and its attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. Copyright in this e-mail and attachments created by us belongs to Littlewoods. Littlewoods takes steps to prohibit the transmission of offensive, obscene or discriminatory material. If this message contains inappropriate material please forward the e-mail intact to [EMAIL PROTECTED] and it will be investigated. Statements and opinions contained in this e-mail may not necessarily represent those of Littlewoods. Please note that e-mail communication may be monitored. Registered office: Littlewoods Retail Limited, Sir John Moores Building, 100 Old Hall Street, Liverpool, L70 1AB Registered no: 421258 http://www.littlewoods.com ***********************************************************************
Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft? Rendez-vous sur "http://www.mandrakestore.com"