Path: ...!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-b.proxad.net!nnrp1-2.free.fr!not-for-mail From: Thomas Newsgroups: fr.comp.os.unix Mail-Copies-To: nobody Subject: script sh / redirection de sorties MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Date: Wed, 16 Mar 2022 22:52:44 +0100 Message-ID: Lines: 40 Organization: Guest of ProXad - France NNTP-Posting-Date: 16 Mar 2022 22:52:45 CET NNTP-Posting-Host: 91.175.52.121 X-Trace: 1647467565 news-4.free.fr 13433 91.175.52.121:15033 X-Complaints-To: abuse@proxad.net Bytes: 1580 bonjour :-) 1) déjà pour me repérer : sur mon vieux mac : + sh --version GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0) Copyright (C) 2007 Free Software Foundation, Inc. sur Ubuntu 16.4 : $ sh --version sh: 0: Illegal option -- $ man sh NAME dash -- command interpreter (shell) y a-t-il moyen de connaitre la version ? 2) redirection de sorties : je souhaite rediriger stdout et stderr dans le même fichier. sur mon vieux mac, je faisais : ( commande ) &> "fichier.log" & et ça marchais très bien. sur Ubuntu 16.4, ça ne marche pas. - pourquoi ? - comment faire ? -- RAPID maintainer http://savannah.nongnu.org/projects/rapid/