* giovedì 02 novembre 2006, alle 09:36, Mario Vittorio Guenzi scrive:
> DAY="date +%u"
> ## restituisce il giorno della settimana con 0=domenica ##
No. Questa restituisce la variabile DAY, valorizzata a "date +%u".
Quello che vuoi tu, e`
DAY=`date +%u`
> $ECHO find etcvar home home2 home3 -print | cpio -o -H newc | bzip2 -c
> | dd obs=100k of=$DEVICE 2> /tmp/backup.mail
> dd: apertura di `': No such file or directory
ovviamente, visto che dai per scontanto che vada tutto dritto (il case
non prevedeva controllo di errore, o gestione di casi diversi da quelli
elencati), lo script arriva fino a qui, e DEVICE e` vuoto, da cui
l'errore.
--
Maurizio - Tannoiser - Lemmo
Founder Member of ERLUG http://erlug.linux.it
-------------------------------------------------------------------------------
Faith: "New Watcher?"
Buffy & Giles: "New Watcher."
Faith: "Screw that."
Buffy: "Now, why didn't I just say that?"
--Buffy the Vampire Slayer: Bad Girls
|