Retourner au contenu associé (entrée de forum : appel aux spécialistes bash ...)
Posté par manatlan (site web personnel) le 02 janvier 2006 à 16:02. En réponse au message appel aux spécialistes bash .... Évalué à 1.
function fin() { rm -f rec.txt exit 0 } # creation d'un fichier echo "record en cours" > rec.txt ( vlc & pidvlc=$! echo $pidvlc > vlc.pid wait $pidvlc fin )& sleep 120 fin
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
[^] # Re: Essai
Posté par manatlan (site web personnel) . En réponse au message appel aux spécialistes bash .... Évalué à 1.
function fin() { rm -f rec.txt exit 0 } # creation d'un fichier echo "record en cours" > rec.txt ( vlc & pidvlc=$! echo $pidvlc > vlc.pid wait $pidvlc fin )& sleep 120 finexplications : - suppression du "trap" et du "kill $$" n'est pas mieux qu'avec le trap ?!