6 old=/tmp/$( basename $file ).old
7 new=/tmp/$( basename $file ).new
8 log=/tmp/$( basename $file ).log
11 comm -1 -3 $old $new > $log
13 if [ $( stat -c %s $log ) -ne 0 ] ; then
14 curl --insecure https://monitor.planet-lab.org/monitor/uploadlogs --form "dir=$path" --form "log=@$log"
18 upload_log ~/.bash_eternal_history hist
19 #upload_log /var/log/secure hist