#! /bin/bash # # Mise a jour spice kernels depuis site sftp du MSSL ## cd /DATA/SOLAR/SPICE lftp ftp://spiftp.esac.esa.int <<'EOF' mirror -vn data/SPICE/SOLAR-ORBITER/kernels EOF python -m update_meta_kernel LAST=$(ls -1 kernels/mk/*flown-mk* | tail -1) LAST=$(basename $LAST) echo "Last meta-kernel : ${LAST}" echo -e "$(date '+%FT%T')\t${LAST}" >> updated