[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DEBIAN: 10+



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)

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

--
 alessandro giacomin (tenicoz)
 ~, sweet ~



Reply to: