che c...o e' questo?
NAME=AU'date +%y%m%d'.ris.'uname -n
all ' are backquotes, missing the last one (typo ?)
the opt p in tar is here useless
tar cvpf $NAME /tmp/DATI.1 /tmp/DATI.2
prouve you know regexpr:
tar cvf $NAME /tmp/DATI.[12]
gzip -9 $NAME # let zip try itself the compressions rate
chmod 777 $NAME.gz ## perche' ?
da dove spunta questo /tmp ?
rcp /tmp/${NAME}.gz sede2:/u/agiorna/${NAME}.gz
i prefer ssh, scp,
rcp $NAME.gz sede2:/u/agiorna
nota all {} are hese useless + confusing
ammesso sede sia un (accessibile) host.
have you ssh installed, try:
tar cf - file[ABC] | ssh hostname tar xfvp -
saluti

guggach