Le Tue, 18 Nov 2003 16:00:23 +0100, Jean-Louis HAILLANT a écrit : > Pour la 2eme partie pas de problème ( un cat monfichier.txt | mail -s > "contenu du fichier" "mon_email" ) ... mais je ne sais pas tester > l'existance du dit fichier ...
if [ -f monfichier.txt ] ; then echo "monfichier.txt existe" else echo "monfichier.txt n'existe pas" fi man bash (si on est bien sous bash) chercher "EXPRESSIONS CONDITIONNELLES" -- Christophe PEREZ
Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft? Rendez-vous sur "http://www.mandrakestore.com". Foire Aux Questions de la liste : http://mdk.mondelinux.org