Retourner au contenu associé (entrée de forum : CRON WGET ...)
Posté par Babelouest (site web personnel) le 14 avril 2005 à 00:11. En réponse au message CRON WGET .... Évalué à 1.
#!/bin/sh #wget http://www.monsite/hello.xml(...)(...) -O hello.xml if [ -f hello.xml ]; then sed -f regles.sed hello.xml > hello2.xml /usr/bin/mysql -utest -ptest dbtest < delete.sql sabcmd hello.xsl hello2.xml | mysql -utest -ptest dbtest rm -f hello.xml rm -f hello2.xml else echo Probleme fi;
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
[^] # Re: c'est possible !
Posté par Babelouest (site web personnel) . En réponse au message CRON WGET .... Évalué à 1.
tu as du oublier le ; apres le fi
ceci dit, comme il est expliqué plus haut, je te conseille d'utiliser la valeur de retour de wget dans le if, ca sera plus propre (man wget)