Le ven. 23 nov. 2012 10:42:19 CET, Philippe Naudin a écrit:
... rsync ...options... 2>&1 > LOGFILE echo -e "finished pushing to the backup \n$LOGFILE"
Nonsense, sorry.
If the output is short, you can do : LOGS=$(rsync ... 2>&1) echo -e "finished pushing to the backup \n$LOGS"
I you expect longer output : rsync ...options... 2>&1 > LOGFILE echo -e "finished pushing to the backup" cat LOGFILE