Groups | Search | Server Info | Login | Register
Groups > fr.comp.os.unix > #7916
| From | Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> |
|---|---|
| Newsgroups | fr.comp.os.unix |
| Subject | Re: script sh / redirection de sorties |
| Date | 2022-03-17 01:05 +0100 |
| Organization | Université de Strasbourg |
| Message-ID | <8735jhxx27.fsf@universite-de-strasbourg.fr.invalid> (permalink) |
| References | <fantome.forums.tDeContes-25D9C4.22524216032022@news.free.fr> |
Thomas <fantome.forums.tDeContes@free.fr.invalid> writes: > 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 ? dpkg -s dash (la ligne Version donne <version-upstream>-<version-ubuntu>) > 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 ? - c'est pas Posix - on fait : ... 1> fichier.log 2>&1 ... -- Alain.
Back to fr.comp.os.unix | Previous | Next — Previous in thread | Next in thread | Find similar
script sh / redirection de sorties Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2022-03-16 22:52 +0100
Re: script sh / redirection de sorties Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> - 2022-03-17 01:05 +0100
Re: script sh / redirection de sorties Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2022-03-17 02:27 +0100
Re: script sh / redirection de sorties Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> - 2022-03-17 15:16 +0100
Re: script sh / redirection de sorties Nicolas George <nicolas$george@salle-s.org> - 2022-03-17 15:02 +0000
Re: script sh / redirection de sorties Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> - 2022-03-17 19:10 +0100
Re: script sh / redirection de sorties Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2022-03-19 16:28 +0100
Re: script sh / redirection de sorties Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> - 2022-03-19 23:44 +0100
csiph-web