Re: DEBIAN: 10+
On Mon, Jul 19, 2004 at 09:59:52AM +0000, alessandro giacomin wrote:
> bugbuster@libero.it ha scritto:
>
> > # :> messages
> > [...]
> > Domanda. Avete idea di come faccia la shell a realizzare una cosa
> > simile ? Ipotesi: cat /dev/null > messages.
>
> da man bash:
> : [arguments]
> No effect; the command does nothing beyond expanding arguments and
> performing any specified redirections. A zero exit code is returned.
>
> quindi redirige il nulla sul file (ovvero (ri)crea un file vuoto)
e si ha lo stesso effetto con `>blablabla`
> >3) time scrive sui stderr le statistiche d'uso delle risorse di
> > sistema consumate da un comando.
> >
> > Domanda. Perche non riesco a ridirigere l'output su un file con
> > l'opzione -a ?.
>
> da man time:
> -o FILE, --output=FILE
> Do not send the results to stderr, but overwrite the
> specified file.
>
> -a, --append
> (Used together with -o.) Do not overwrite but append.
>
> se non metti -o, -a è inultile
oltre che la sintassi del comando da lui indicato errata perche' -a non
ha argomenti, comunque sempre da man time:
Users of the bash shell need to use an explicit path in order to
run the external time command and not the shell builtin variant. On
system where time is installed in /usr/bin, the first example would
become
/usr/bin/time wc /etc/hosts
ciao
--
mattia
:wq!
Reply to: