Sujet : script sh / redirection de sorties
De : fantome.forums.tDeContes (at) *nospam* free.fr.invalid (Thomas)
Groupes : fr.comp.os.unixDate : 16. Mar 2022, 23:52:44
Autres entêtes
Organisation : Guest of ProXad - France
Message-ID : <fantome.forums.tDeContes-25D9C4.22524216032022@news.free.fr>
User-Agent : MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
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 maintainerhttp://savannah.nongnu.org/projects/rapid/